forked from p15670423/monkey
Altered mongomock fixture to be a module-scoped, in an attempt to fix fixture import error
This commit is contained in:
parent
99bbe36c62
commit
0ab91ef27d
|
@ -6,7 +6,7 @@ from monkey_island.cc.models.edge import Edge
|
|||
from monkey_island.cc.models.zero_trust.finding import Finding
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
def change_to_mongo_mock():
|
||||
# Make sure tests are working with mongomock
|
||||
mongoengine.disconnect()
|
||||
|
|
Loading…
Reference in New Issue