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

force redis test data to be refreshed before each test

parent b4de4582
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,7 @@ def flask_config_filename(): ...@@ -143,6 +143,7 @@ def flask_config_filename():
@pytest.fixture @pytest.fixture
def mocked_redis(mocker): def mocked_redis(mocker):
MockedRedis.db = None # force data to be reloaded
mocker.patch( mocker.patch(
'inventory_provider.tasks.common.redis.StrictRedis', 'inventory_provider.tasks.common.redis.StrictRedis',
MockedRedis) MockedRedis)
......
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