Skip to content

Commit

Permalink
Resolve pytest warning (#8507)
Browse files Browse the repository at this point in the history
Pytest will attempt to collect test cases from any class whose name starts with "test",
so we have to explicitly mark this class as not a test.
  • Loading branch information
bpandola authored Jan 20, 2025
1 parent 874adb8 commit 58c4f56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_utilities/test_id_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def generate_test_id(


class TestResourceIdentifier(ResourceIdentifier):
__test__ = False # Prevent pytest discovery

service = SERVICE
resource = RESOURCE

Expand Down

0 comments on commit 58c4f56

Please sign in to comment.