forked from p15670423/monkey
island: Use os.path.join when creating test config contents dict
This commit is contained in:
parent
2cd665ff11
commit
09e7deb936
|
@ -33,7 +33,7 @@ def test_island_config_options__data_dir_expanduser(monkeypatch, tmpdir):
|
|||
DATA_DIR_NAME = "test_data_dir"
|
||||
|
||||
assert_island_config_options_data_dir_equals(
|
||||
{"data_dir": f"~/{DATA_DIR_NAME}"}, os.path.join(tmpdir, DATA_DIR_NAME)
|
||||
{"data_dir": os.path.join("~", DATA_DIR_NAME)}, os.path.join(tmpdir, DATA_DIR_NAME)
|
||||
)
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ def test_island_config_options__data_dir_expandvars(monkeypatch, tmpdir):
|
|||
DATA_DIR_NAME = "test_data_dir"
|
||||
|
||||
assert_island_config_options_data_dir_equals(
|
||||
{"data_dir": f"$HOME/{DATA_DIR_NAME}"}, os.path.join(tmpdir, DATA_DIR_NAME)
|
||||
{"data_dir": os.path.join("$HOME", DATA_DIR_NAME)}, os.path.join(tmpdir, DATA_DIR_NAME)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue