Skip to content

Commit

Permalink
test/oidc: rename TestPublisher, mark as abstract (pypi#16921)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
woodruffw and miketheman authored Oct 21, 2024
1 parent 6587ace commit 08aedde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/oidc/models/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ def test_supports_attestations(self):
],
)
def test_verify_url(self, monkeypatch, url, publisher_url, expected):
class ConcretePublisher(_core.OIDCPublisher):
class TestPublisher(_core.OIDCPublisher):
__abstract__ = True

@property
def publisher_base_url(self):
return publisher_url

publisher = ConcretePublisher()
publisher = TestPublisher()
assert publisher.verify_url(url) == expected


Expand Down

0 comments on commit 08aedde

Please sign in to comment.