Skip to content

Commit 22bef73

Browse files
committed
🧪 setup_codes: start from a clean profile (aiidateam#7600)
The fixture builds three codes whose labels collide with the first one's pk and uuid, which only tests ambiguity resolution if no other codes are present. It took whatever the session profile held. That includes a computer imported from an archive by an earlier test in the same worker, labelled `localhost` but carrying the pre-2.0 transport name `local`, which `aiida_localhost` cannot match and cannot recover from once the unique label collides. Every test here then errors during setup.
1 parent ce5a5b0 commit 22bef73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/cmdline/params/types/test_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def parameter_type():
2525

2626

2727
@pytest.fixture
28-
def setup_codes(aiida_localhost):
28+
def setup_codes(aiida_profile_clean, aiida_localhost):
2929
"""Create some `Code` instances to test the `CodeParamType` parameter type for the command line infrastructure.
3030
3131
We create an initial code with a random name and then on purpose create two code with a name that matches exactly

0 commit comments

Comments
 (0)