From 2973ac311afa19a3a45ad0141cf38f54c6b3a69e Mon Sep 17 00:00:00 2001 From: Pavel Lonkin Date: Fri, 27 Mar 2026 12:01:46 +0100 Subject: [PATCH] MPT-19657 fix unauthorized response in E2E tests --- tests/e2e/test_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()