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