File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
4549class 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" )
You can’t perform that action at this time.
0 commit comments