Skip to content
Snippets Groups Projects
Commit 15256516391c authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[tests] Use CubicWeb 3.19 API

parent 1a776deedf6a
No related branches found
No related tags found
No related merge requests found
......@@ -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__ = {}
......
......@@ -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
......
......@@ -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}
......
......@@ -8,8 +8,9 @@
@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)()
......@@ -12,8 +13,9 @@
@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()
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