From ad5d64fe707f0c3c182b409713070dc0a2bd8aba Mon Sep 17 00:00:00 2001 From: Robert Segal Date: Wed, 18 Feb 2026 09:27:03 -0700 Subject: [PATCH] Fix failing unauthorised e2e test --- tests/e2e/test_access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/test_access.py b/tests/e2e/test_access.py index 3f295ca9..99ddfc78 100644 --- a/tests/e2e/test_access.py +++ b/tests/e2e/test_access.py @@ -1,14 +1,14 @@ import pytest from mpt_api_client import MPTClient -from mpt_api_client.exceptions import MPTAPIError +from mpt_api_client.exceptions import MPTHttpError @pytest.mark.flaky def test_unauthorised(base_url): client = MPTClient.from_config(api_token="TKN-invalid", base_url=base_url) # noqa: S106 - with pytest.raises(MPTAPIError, match=r"401 Unauthorized"): + with pytest.raises(MPTHttpError, match=r"401 Unauthorized"): client.catalog.products.fetch_page()