diff --git a/templateflow/conf/tests/test_conf.py b/templateflow/conf/tests/test_conf.py index 355bbd12..7ee6deb0 100644 --- a/templateflow/conf/tests/test_conf.py +++ b/templateflow/conf/tests/test_conf.py @@ -41,7 +41,7 @@ def _find_message(lines, msg, reverse=True): @pytest.mark.parametrize('use_datalad', ['off', 'on']) def test_conf_init(monkeypatch, tmp_path, capsys, use_datalad): """Check the correct functioning of config set-up.""" - home = (tmp_path / '-'.join(('tf', 'dl', use_datalad))).resolve() + home = (tmp_path / f'conf-init-{use_datalad}').resolve() monkeypatch.setenv('TEMPLATEFLOW_USE_DATALAD', use_datalad) monkeypatch.setenv('TEMPLATEFLOW_HOME', str(home)) @@ -58,7 +58,7 @@ def test_conf_init(monkeypatch, tmp_path, capsys, use_datalad): @pytest.mark.parametrize('use_datalad', ['off', 'on']) def test_setup_home(monkeypatch, tmp_path, capsys, use_datalad): """Check the correct functioning of the installation hook.""" - home = (tmp_path / '-'.join(('tf', 'dl', use_datalad))).resolve() + home = (tmp_path / f'setup-home-{use_datalad}').resolve() monkeypatch.setenv('TEMPLATEFLOW_USE_DATALAD', use_datalad) monkeypatch.setenv('TEMPLATEFLOW_HOME', str(home))