equal
deleted
inserted
replaced
4 |
4 |
5 from pyramid_cubicweb import make_cubicweb_application |
5 from pyramid_cubicweb import make_cubicweb_application |
6 |
6 |
7 |
7 |
8 class PyramidCWTest(CubicWebTestTC): |
8 class PyramidCWTest(CubicWebTestTC): |
|
9 settings = {} |
|
10 |
9 @classmethod |
11 @classmethod |
10 def init_config(cls, config): |
12 def init_config(cls, config): |
11 super(PyramidCWTest, cls).init_config(config) |
13 super(PyramidCWTest, cls).init_config(config) |
12 config.global_set_option('https-url', 'https://localhost.local/') |
14 config.global_set_option('https-url', 'https://localhost.local/') |
13 config.global_set_option('anonymous-user', 'anon') |
15 config.global_set_option('anonymous-user', 'anon') |
15 config['pyramid-session-secret'] = 'sessionsecret' |
17 config['pyramid-session-secret'] = 'sessionsecret' |
16 |
18 |
17 def setUp(self): |
19 def setUp(self): |
18 # Skip CubicWebTestTC setUp |
20 # Skip CubicWebTestTC setUp |
19 super(CubicWebTestTC, self).setUp() |
21 super(CubicWebTestTC, self).setUp() |
20 config = make_cubicweb_application(self.config) |
22 config = make_cubicweb_application(self.config, self.settings) |
21 self.includeme(config) |
23 self.includeme(config) |
22 self.pyr_registry = config.registry |
24 self.pyr_registry = config.registry |
23 self.webapp = webtest.TestApp(config.make_wsgi_app()) |
25 self.webapp = webtest.TestApp(config.make_wsgi_app()) |
24 |
26 |
25 def includeme(self, config): |
27 def includeme(self, config): |