From 6cfdcaaec707a2ba20ef3650cbd48917ceb0f8e1 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 25 Apr 2022 10:23:37 -0400 Subject: [PATCH] UT: Change flask_client() fixture from session- to function-scoped --- monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py b/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py index eeef5b383..4779bd0e2 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py @@ -9,7 +9,7 @@ import monkey_island.cc.resources.island_mode from monkey_island.cc.services.representations import output_json -@pytest.fixture(scope="session") +@pytest.fixture def flask_client(monkeypatch_session): monkeypatch_session.setattr(flask_jwt_extended, "verify_jwt_in_request", lambda: None)