@@ -41,7 +41,7 @@ def _find_message(lines, msg, reverse=True):
41
41
@pytest .mark .parametrize ('use_datalad' , ['off' , 'on' ])
42
42
def test_conf_init (monkeypatch , tmp_path , capsys , use_datalad ):
43
43
"""Check the correct functioning of config set-up."""
44
- home = (tmp_path / '-' . join (( 'tf' , 'dl' , use_datalad )) ).resolve ()
44
+ home = (tmp_path / f'conf-init- { use_datalad } ' ).resolve ()
45
45
monkeypatch .setenv ('TEMPLATEFLOW_USE_DATALAD' , use_datalad )
46
46
monkeypatch .setenv ('TEMPLATEFLOW_HOME' , str (home ))
47
47
@@ -55,10 +55,10 @@ def test_conf_init(monkeypatch, tmp_path, capsys, use_datalad):
55
55
assert str (tfc .TF_HOME ) == str (home )
56
56
57
57
58
- @pytest .mark .parametrize ('use_datalad' , ['on ' , 'off ' ])
58
+ @pytest .mark .parametrize ('use_datalad' , ['off ' , 'on ' ])
59
59
def test_setup_home (monkeypatch , tmp_path , capsys , use_datalad ):
60
60
"""Check the correct functioning of the installation hook."""
61
- home = (tmp_path / '-' . join (( 'tf' , 'dl' , use_datalad )) ).resolve ()
61
+ home = (tmp_path / f'setup-home- { use_datalad } ' ).resolve ()
62
62
monkeypatch .setenv ('TEMPLATEFLOW_USE_DATALAD' , use_datalad )
63
63
monkeypatch .setenv ('TEMPLATEFLOW_HOME' , str (home ))
64
64
0 commit comments