Skip to content

Commit b21f396

Browse files
authored
fix: change temporary folder name between tests
1 parent 07bd404 commit b21f396

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templateflow/conf/tests/test_conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _find_message(lines, msg, reverse=True):
4141
@pytest.mark.parametrize('use_datalad', ['off', 'on'])
4242
def test_conf_init(monkeypatch, tmp_path, capsys, use_datalad):
4343
"""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()
4545
monkeypatch.setenv('TEMPLATEFLOW_USE_DATALAD', use_datalad)
4646
monkeypatch.setenv('TEMPLATEFLOW_HOME', str(home))
4747

@@ -55,10 +55,10 @@ def test_conf_init(monkeypatch, tmp_path, capsys, use_datalad):
5555
assert str(tfc.TF_HOME) == str(home)
5656

5757

58-
@pytest.mark.parametrize('use_datalad', ['on', 'off'])
58+
@pytest.mark.parametrize('use_datalad', ['off', 'on'])
5959
def test_setup_home(monkeypatch, tmp_path, capsys, use_datalad):
6060
"""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()
6262
monkeypatch.setenv('TEMPLATEFLOW_USE_DATALAD', use_datalad)
6363
monkeypatch.setenv('TEMPLATEFLOW_HOME', str(home))
6464

0 commit comments

Comments
 (0)