|
@@ -16,6 +16,7 @@ from tracim.lib.utils.logger import logger
|
16
|
16
|
from tracim.fixtures import FixturesLoader
|
17
|
17
|
from tracim.fixtures.users_and_groups import Base as BaseFixture
|
18
|
18
|
from tracim.config import CFG
|
|
19
|
+from tracim.extensions import hapic
|
19
|
20
|
from tracim import main
|
20
|
21
|
from webtest import TestApp
|
21
|
22
|
|
|
@@ -36,8 +37,7 @@ class FunctionalTest(unittest.TestCase):
|
36
|
37
|
'preview_cache_dir': '/tmp/test/preview_cache',
|
37
|
38
|
|
38
|
39
|
}
|
39
|
|
- from tracim.extensions import hapic
|
40
|
|
- hapic._context = None
|
|
40
|
+ hapic.reset_context()
|
41
|
41
|
app = main({}, **settings)
|
42
|
42
|
self.init_database(settings)
|
43
|
43
|
self.testapp = TestApp(app)
|