Altered mongomock fixture to be a module-scoped, in an attempt to fix fixture import error

This commit is contained in:
VakarisZ 2021-05-20 10:22:20 +03:00
parent 99bbe36c62
commit 0ab91ef27d
1 changed files with 1 additions and 1 deletions

View File

@ -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()