Skip to content

Commit

Permalink
patch(pytest_plugins/pytest_operator_groups): Fail collect step if ze…
Browse files Browse the repository at this point in the history
…ro groups found (#78)
  • Loading branch information
carlcsaposs-canonical authored Aug 11, 2023
1 parent 4c052b6 commit 7a5223a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class Group:
sorted_groups: list[dict] = [
dataclasses.asdict(group) for group in sorted(list(groups))
]
assert (
len(sorted_groups) > 0
), "Zero groups found. Add `pytest.mark.group(1)` to every test"
output = f"groups={json.dumps(sorted_groups)}"
print(f"\n\n{output}\n")
output_file = os.environ["GITHUB_OUTPUT"]
Expand Down

0 comments on commit 7a5223a

Please sign in to comment.