1 changed files with 1 additions and 1 deletions
@ -22,7 +22,7 @@ def get_mod_name(request: pytest.FixtureRequest): |
|||
@pytest.fixture(name="client") |
|||
def get_test_client(mod_name: str, monkeypatch: MonkeyPatch) -> TestClient: |
|||
if mod_name in sys.modules: |
|||
del sys.modules[mod_name] |
|||
del sys.modules[mod_name] # pragma: no cover |
|||
monkeypatch.setenv("ADMIN_EMAIL", "[email protected]") |
|||
main_mod = importlib.import_module(mod_name) |
|||
return TestClient(main_mod.app) |
|||
|
|||
Loading…
Reference in new issue