From 5e301c99a82d640b402d6102724e0c5f2eb89f2a Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Fri, 3 Jan 2025 17:32:19 +0000 Subject: [PATCH] Final attempt to fix CI pending monty release --- tests/adapters/conftest.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/adapters/conftest.py b/tests/adapters/conftest.py index 48a3594cc..66b36b3e8 100644 --- a/tests/adapters/conftest.py +++ b/tests/adapters/conftest.py @@ -5,10 +5,16 @@ import requests -@pytest.fixture(autouse=True) +@pytest.fixture(autouse=True, scope="function") def set_ci_env(monkeypatch): - """Super unpleasant workaround to deal with monty's deprecation behaviour.""" - monkeypatch.setenv("CI", "false") + """Super unpleasant workaround to deal with monty's deprecation behaviour, + see: + + - https://github.com/materialsproject/pymatgen/issues/4243 + - https://github.com/materialsvirtuallab/monty/pull/735 + + """ + monkeypatch.delenv("CI", raising=False) yield