Skip to content

Commit

Permalink
Altered mongomock fixture to be a module-scoped, in an attempt to fix…
Browse files Browse the repository at this point in the history
… fixture import error
  • Loading branch information
VakarisZ committed May 20, 2021
1 parent 99bbe36 commit 0ab91ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
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()
Expand Down

0 comments on commit 0ab91ef

Please sign in to comment.