Skip to content

Commit e6879a2

Browse files
JohanKJSchreurssoxofaan
authored andcommitted
Issue #350 Simplify: unnecessary Path(...), concatenate as string works fine
1 parent c6c1932 commit e6879a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def test_get_user_config_dir():
2121
# But on Windows we need to set APPDATA instead, and we don't have separate
2222
# variables for config and data.
2323
if platform.system() == "Windows":
24-
os.environ["APPDATA"] = str(Path(__file__).parent / Path("data/user_dirs/config"))
25-
assert get_user_config_dir() == Path(__file__).parent / Path("data/user_dirs/config/openeo-python-client")
24+
os.environ["APPDATA"] = str(Path(__file__).parent / "data/user_dirs/config")
25+
assert get_user_config_dir() == Path(__file__).parent / "data/user_dirs/config/openeo-python-client"
2626

2727

2828
def test_get_user_data_dir():
@@ -31,8 +31,8 @@ def test_get_user_data_dir():
3131
# But on Windows we need to set APPDATA instead, and we don't have separate
3232
# variables for config and data.
3333
if platform.system() == "Windows":
34-
os.environ["APPDATA"] = str(Path(__file__).parent / Path("data/user_dirs/data"))
35-
assert get_user_data_dir() == Path(__file__).parent / Path("data/user_dirs/data/openeo-python-client")
34+
os.environ["APPDATA"] = str(Path(__file__).parent / "data/user_dirs/data")
35+
assert get_user_data_dir() == Path(__file__).parent / "data/user_dirs/data/openeo-python-client"
3636

3737

3838
class TestClientConfig:

0 commit comments

Comments
 (0)