Fix pyramid tests
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Fri, 10 May 2019 16:04:37 +0200
changeset 12593 c30f8dc81f22
parent 12592 7ccf23523670
child 12594 cd9c9573fbd5
Fix pyramid tests Followup fa292e9 which require cubicweb.session.secret to be set.
cubicweb/pyramid/test/__init__.py
--- a/cubicweb/pyramid/test/__init__.py	Fri May 10 11:42:24 2019 +0200
+++ b/cubicweb/pyramid/test/__init__.py	Fri May 10 16:04:37 2019 +0200
@@ -15,7 +15,10 @@
     def setUp(self):
         # Skip CubicWebTestTC setUp
         super(CubicWebTestTC, self).setUp()
-        settings = {'cubicweb.bwcompat': False}
+        settings = {
+            'cubicweb.bwcompat': False,
+            'cubicweb.session.secret': 'test',
+        }
         settings.update(self.settings)
         config = Configurator(settings=settings)
         config.registry['cubicweb.repository'] = self.repo