From 941a51d4962468009a348e9b6f1e62e91f6ddda4 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Tue, 24 Nov 2026 10:04:07 +0200 Subject: [PATCH] test: fix tests for oauth client update --- ahriman-web/tests/ahriman/core/auth/test_oauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ahriman-web/tests/ahriman/core/auth/test_oauth.py b/ahriman-web/tests/ahriman/core/auth/test_oauth.py index 86b605be..1c7e28e2 100644 --- a/ahriman-web/tests/ahriman/core/auth/test_oauth.py +++ b/ahriman-web/tests/ahriman/core/auth/test_oauth.py @@ -31,10 +31,11 @@ def test_get_provider() -> None: assert OAuth.get_provider("GithubClient") == aioauth_client.GithubClient -def test_get_provider_not_a_type() -> None: +def test_get_provider_not_a_type(mocker: MockerFixture) -> None: """ must raise an exception if attribute is not a type """ + mocker.patch.object(aioauth_client, "RANDOM", "not a type", create=True) with pytest.raises(OptionError): OAuth.get_provider("RANDOM")