diff options
Diffstat (limited to 'tests/frontend/track.py')
-rw-r--r-- | tests/frontend/track.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/frontend/track.py b/tests/frontend/track.py index b3b063f69..5a6460d3d 100644 --- a/tests/frontend/track.py +++ b/tests/frontend/track.py @@ -51,8 +51,10 @@ def test_track_single(cli, tmpdir, datafiles): # Assert that tracking is needed for both elements states = cli.get_element_states(project, [element_target_name]) - assert states[element_dep_name] == 'no reference' - assert states[element_target_name] == 'no reference' + assert states == { + element_dep_name: "no reference", + element_target_name: "no reference", + } # Now first try to track only one element result = cli.run(project=project, args=[ @@ -68,8 +70,10 @@ def test_track_single(cli, tmpdir, datafiles): # Assert that the dependency is waiting and the target has still never been tracked states = cli.get_element_states(project, [element_target_name]) - assert states[element_dep_name] == 'no reference' - assert states[element_target_name] == 'waiting' + assert states == { + element_dep_name: 'no reference', + element_target_name: 'waiting', + } @pytest.mark.datafiles(os.path.join(TOP_DIR)) |