From 08aeddebeebe1ad82bed3c0ed210552aa7ebdecb Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 21 Oct 2024 10:35:15 -0400 Subject: [PATCH] test/oidc: rename TestPublisher, mark as abstract (#16921) Co-authored-by: Mike Fiedler --- tests/unit/oidc/models/test_core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/oidc/models/test_core.py b/tests/unit/oidc/models/test_core.py index 35b04b5a4b98..f671c833a867 100644 --- a/tests/unit/oidc/models/test_core.py +++ b/tests/unit/oidc/models/test_core.py @@ -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