Skip to content

Commit

Permalink
Make test more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasraabe committed May 23, 2023
1 parent fe7e793 commit 9927ff3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def test_collect_tasks_from_modules_with_the_same_name(tmp_path):
report.outcome == CollectionOutcome.SUCCESS
for report in session.collection_reports
)
assert session.collection_reports[0].node.function.__module__ == "a.task_module"
assert session.collection_reports[1].node.function.__module__ == "b.task_module"
assert {
report.node.function.__module__ for report in session.collection_reports
} == {"a.task_module", "b.task_module"}


@pytest.mark.end_to_end()
Expand Down

0 comments on commit 9927ff3

Please sign in to comment.