diff options
Diffstat (limited to 'tests/util/test_ci.py')
-rw-r--r-- | tests/util/test_ci.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/util/test_ci.py b/tests/util/test_ci.py index 5cfc9bb2..ef9a089d 100644 --- a/tests/util/test_ci.py +++ b/tests/util/test_ci.py @@ -54,3 +54,12 @@ def test_is_ci_not(monkeypatch: pytest.MonkeyPatch) -> None: for var in _ENV_VARS: monkeypatch.delenv(var, raising=False) assert not is_ci() + + +def test_is_ci_not_teamcity_local(monkeypatch: pytest.MonkeyPatch) -> None: + # pycharm sets this + for var in _ENV_VARS: + monkeypatch.delenv(var, raising=False) + + monkeypatch.setenv("TEAMCITY_VERSION", "LOCAL") + assert not is_ci() |