Skip to content

Commit 57627b0

Browse files
committed
Update tests with new modified paths
1 parent 59fc1d5 commit 57627b0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_platform_paths.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ def test_get_platform_folder():
3939
if sys.platform == "win32":
4040
assert platform_folder == str(USER_PATH / "demo")
4141
else:
42-
assert platform_folder == str(USER_PATH / ".demo")
42+
assert platform_folder == str(USER_PATH / ".local/share/demo")
43+
44+
if sys.platform != "win32":
45+
config_folder = get_platform_folder("demo", config=True)
46+
assert config_folder == str(USER_PATH / ".config/demo")
4347

4448

4549
class TestManagedPaths:
@@ -52,9 +56,10 @@ def test_basic_paths(self):
5256
# they are not accidentally changed.
5357

5458
project_folder = Path(get_platform_folder(self.project_name)) / "env"
59+
config_folder = Path(get_platform_folder(self.project_name, config=True)) / "env"
5560

5661
assert self.paths.project_folder == str(project_folder)
57-
assert self.paths.config_path == str(project_folder / "config.json")
62+
assert self.paths.config_path == str(config_folder / "config.json")
5863
assert self.paths.manager_folder == str(project_folder / "lib")
5964
assert self.paths.pip_zipapp == str(project_folder / "lib" / "pip.pyz")
6065
assert self.paths.env_folder == str(project_folder / "lib" / "ducktools-env")

0 commit comments

Comments
 (0)