island: Use os.path.join when creating test config contents dict

This commit is contained in:
Mike Salvatore 2021-06-01 03:59:07 -04:00
parent 2cd665ff11
commit 09e7deb936
1 changed files with 2 additions and 2 deletions

View File

@ -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)
)