-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): update platformdirs requirement from <4,>=3.1.1 to >=3.1…
….1,<5 (#10603) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
bbc01b4
commit 70fc4e6
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
from dvc.dirs import global_config_dir | ||
import sys | ||
|
||
import pytest | ||
|
||
from dvc.dirs import global_config_dir, site_cache_dir | ||
from dvc.env import DVC_GLOBAL_CONFIG_DIR | ||
|
||
|
||
def test_global_config_dir_respects_env_var(monkeypatch): | ||
path = "/some/random/path" | ||
monkeypatch.setenv(DVC_GLOBAL_CONFIG_DIR, path) | ||
assert global_config_dir() == path | ||
|
||
|
||
@pytest.mark.skipif(sys.platform != "linux", reason="Only for Unix platforms") | ||
def test_site_cache_dir_on_unix(): | ||
assert site_cache_dir() == "/var/tmp/dvc" |