Skip to content

Commit 07e88f8

Browse files
committed
Test should check default behaviour when no env var is set
1 parent 41a17ac commit 07e88f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/test_dirs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from dvc.dirs import global_config_dir, site_cache_dir
6-
from dvc.env import DVC_GLOBAL_CONFIG_DIR
6+
from dvc.env import DVC_GLOBAL_CONFIG_DIR, DVC_SITE_CACHE_DIR
77

88

99
def test_global_config_dir_respects_env_var(monkeypatch):
@@ -13,5 +13,6 @@ def test_global_config_dir_respects_env_var(monkeypatch):
1313

1414

1515
@pytest.mark.skipif(sys.platform != "linux", reason="Only for Unix platforms")
16-
def test_site_cache_dir_on_unix():
16+
def test_site_cache_dir_on_unix(monkeypatch):
17+
monkeypatch.delenv(DVC_SITE_CACHE_DIR, raising=False)
1718
assert site_cache_dir() == "/var/tmp/dvc"

0 commit comments

Comments
 (0)