diff --git a/__pkginfo__.py b/__pkginfo__.py
index 1a776deedf6a1d9ba05b2419c0772d4827bd9061_X19wa2dpbmZvX18ucHk=..15256516391c36f53604956c194b9e553f4d2af6_X19wa2dpbmZvX18ucHk= 100644
--- 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
index 1a776deedf6a1d9ba05b2419c0772d4827bd9061_Y3ViaWN3ZWItc3F1YXJldWkuc3BlYw==..15256516391c36f53604956c194b9e553f4d2af6_Y3ViaWN3ZWItc3F1YXJldWkuc3BlYw== 100644
--- 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
index 1a776deedf6a1d9ba05b2419c0772d4827bd9061_ZGViaWFuL2NvbnRyb2w=..15256516391c36f53604956c194b9e553f4d2af6_ZGViaWFuL2NvbnRyb2w= 100644
--- 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
index 1a776deedf6a1d9ba05b2419c0772d4827bd9061_dGVzdC91bml0dGVzdF92aWV3cy5weQ==..15256516391c36f53604956c194b9e553f4d2af6_dGVzdC91bml0dGVzdF92aWV3cy5weQ== 100644
--- a/test/unittest_views.py
+++ b/test/unittest_views.py
@@ -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()