diff --git a/tests/e2e/test_access.py b/tests/e2e/test_access.py index 99ddfc78..d9041d22 100644 --- a/tests/e2e/test_access.py +++ b/tests/e2e/test_access.py @@ -8,7 +8,7 @@ def test_unauthorised(base_url): client = MPTClient.from_config(api_token="TKN-invalid", base_url=base_url) # noqa: S106 - with pytest.raises(MPTHttpError, match=r"401 Unauthorized"): + with pytest.raises(MPTHttpError, match=r"401 Authentication Failed"): client.catalog.products.fetch_page()