Skip to content

Commit

Permalink
Final attempt to fix CI pending monty release
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jan 3, 2025
1 parent b833036 commit f94d193
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/adapters/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
import requests


@pytest.fixture(autouse=True)
@pytest.fixture(autouse=True, scope="module")
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


Expand Down

0 comments on commit f94d193

Please sign in to comment.