We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b71a360 commit 9a6b97eCopy full SHA for 9a6b97e
test/test_api/test_project_details_api.py
@@ -33,6 +33,18 @@ def setUp(self):
33
super(TestProjectAPI, self).setUp()
34
db.session.query(Project).delete()
35
36
+ test_config = {
37
+ 'PRODUCTS_SUBPRODUCTS': {
38
+ 'test_product': ['test_subproduct1', 'test_subproduct2'],
39
+ }
40
41
+ self.config_patcher = patch.dict(self.flask_app.config, test_config)
42
+ self.config_patcher.start()
43
+
44
+ def tearDown(self):
45
+ self.config_patcher.stop()
46
+ super(TestProjectAPI, self).tearDown()
47
48
def setupProjects(self):
49
project = ProjectFactory.create(
50
updated='2015-01-01T14:37:30.642119',
0 commit comments