# HG changeset patch # User Rémi Cardona <remi.cardona@logilab.fr> # Date 1422624768 -3600 # Fri Jan 30 14:32:48 2015 +0100 # Node ID 15256516391c36f53604956c194b9e553f4d2af6 # Parent 1a776deedf6a1d9ba05b2419c0772d4827bd9061 [tests] Use CubicWeb 3.19 API diff --git a/__pkginfo__.py b/__pkginfo__.py --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -13,7 +13,7 @@ description = 'data-centric user interface for cubicweb based on bootstrap' web = 'http://www.cubicweb.org/project/%s' % distname -__depends__ = {'cubicweb': '>= 3.17.2', +__depends__ = {'cubicweb': '>= 3.19.0', 'cubicweb-bootstrap': '>= 1.0.0', } __recommends__ = {} diff --git a/cubicweb-squareui.spec b/cubicweb-squareui.spec --- a/cubicweb-squareui.spec +++ b/cubicweb-squareui.spec @@ -20,7 +20,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: %{python} %{python}-setuptools -Requires: cubicweb >= 3.17.2 +Requires: cubicweb >= 3.19.0 Requires: cubicweb-bootstrap >= 1.0.0 %description diff --git a/debian/control b/debian/control --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Package: cubicweb-squareui Architecture: all Depends: - cubicweb-web (>= 3.17.2), + cubicweb-web (>= 3.19.0), cubicweb-bootstrap (>= 1.0.0), ${misc:Depends}, ${python:Depends} diff --git a/test/unittest_views.py b/test/unittest_views.py --- a/test/unittest_views.py +++ b/test/unittest_views.py @@ -8,12 +8,14 @@ @tag('index') def test_valid_xhtml_index(self): - self.view('index') + with self.admin_access.web_request() as req: + self.view('index', req=req) @tag('error') def test_valid_xhtml_error(self): valid = self.content_type_validators.get('text/html', XMLValidator)() - page = valid.parse_string(self.vreg['views'].main_template(self.request(), 'error-template')) + with self.admin_access.web_request() as req: + page = valid.parse_string(self.vreg['views'].main_template(req, 'error-template')) if __name__ == '__main__': unittest_main()