pyramid_cubicweb/tests/__init__.py
changeset 11593 73bf8377a3d5
parent 11564 a6547ff97ce0
child 11606 e245680acce3
--- a/pyramid_cubicweb/tests/__init__.py	Fri Aug 07 11:52:08 2015 +0200
+++ b/pyramid_cubicweb/tests/__init__.py	Fri Aug 07 11:59:07 2015 +0200
@@ -15,6 +15,8 @@
         config.global_set_option('anonymous-user', 'anon')
         config['pyramid-auth-secret'] = 'authsecret'
         config['pyramid-session-secret'] = 'sessionsecret'
+        config.https_uiprops = None
+        config.https_datadir_url = None
 
     def setUp(self):
         # Skip CubicWebTestTC setUp
@@ -22,7 +24,9 @@
         config = make_cubicweb_application(self.config, self.settings)
         self.includeme(config)
         self.pyr_registry = config.registry
-        self.webapp = webtest.TestApp(config.make_wsgi_app())
+        self.webapp = webtest.TestApp(
+            config.make_wsgi_app(),
+            extra_environ={'wsgi.url_scheme': 'https'})
 
     def includeme(self, config):
         pass