Skip to content
Snippets Groups Projects
Commit 88448fd3 authored by Erik Reid's avatar Erik Reid
Browse files

handle changes from previous commit in unit test

parent a9719568
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,7 @@ def app_config(): ...@@ -141,6 +141,7 @@ def app_config():
f.write("%s = '%s'\n" % ( f.write("%s = '%s'\n" % (
"INVENTORY_PROVIDER_CONFIG_FILENAME", "INVENTORY_PROVIDER_CONFIG_FILENAME",
data_config_filename(tmpdir))) data_config_filename(tmpdir)))
f.write('ENABLE_TESTING_ROUTES = True\n')
yield app_config_filename yield app_config_filename
...@@ -153,7 +154,6 @@ def client(app_config, mocker): ...@@ -153,7 +154,6 @@ def client(app_config, mocker):
MockedRedis) MockedRedis)
os.environ["SETTINGS_FILENAME"] = app_config os.environ["SETTINGS_FILENAME"] = app_config
os.environ["ENABLE_TESTING_ROUTES"] = "1"
with inventory_provider.create_app().test_client() as c: with inventory_provider.create_app().test_client() as c:
yield c yield c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment