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()