Skip to content
Snippets Groups Projects
Commit bd4aa23e25e0 authored by François Ferry's avatar François Ferry
Browse files

feat!: upgrade CubicWeb to version 4

parent 0240f6e210fa
No related branches found
No related tags found
1 merge request!69feat!: upgrade CubicWeb to version 4
Pipeline #207046 canceled
......@@ -14,8 +14,8 @@
web = f"https://forge.extranet.logilab.fr/cubicweb/cubes/{distname}"
__depends__ = {
"cubicweb": ">= 3.38.0, < 3.39.0",
"six": ">= 1.4.0",
"cubicweb": ">= 4.0.0, < 5.0.0",
"cubicweb-web": ">= 1.0.0, < 2.0.0",
"cwtags": None,
"elasticsearch": ">=7.0.0,<8.0.0",
"elasticsearch-dsl": ">=7.0.0,<8.0.0",
......
elasticsearch,blog
elasticsearch,blog,web
......@@ -7,7 +7,7 @@
from elasticsearch_dsl.faceted_search import FacetedResponse
from elasticsearch_dsl.search import Search
from cubicweb.devtools import testlib
from cubicweb_web.devtools import testlib
from cubicweb.cwconfig import CubicWebConfiguration
from cubicweb_elasticsearch import ccplugin
from cubicweb_elasticsearch.es import indexable_types, fulltext_indexable_rql
......@@ -150,7 +150,7 @@
return True
class ElasticSearchViewsTC(testlib.CubicWebTC):
class ElasticSearchViewsTC(testlib.WebCWTC):
# TODO generate X tests ranging the number of results from 1 to 150
@patch("elasticsearch_dsl.search.Search.execute", new=mock_execute_1)
@patch("elasticsearch_dsl.connections.connections.get_connection", new=mock_cnx)
......@@ -174,7 +174,7 @@
self.view("esearch", req=req, template=None)
class ElasticsearchTC(testlib.CubicWebTC):
class ElasticsearchTC(testlib.WebCWTC):
def test_1(self):
with self.admin_access.cnx() as cnx:
etype = "Person"
......
......@@ -5,6 +5,7 @@
sitepackages = true
deps =
pytest
webtest
cubicweb-blog
mock
git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment