We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46b7f7b commit ad5d64fCopy full SHA for ad5d64f
tests/e2e/test_access.py
@@ -1,14 +1,14 @@
1
import pytest
2
3
from mpt_api_client import MPTClient
4
-from mpt_api_client.exceptions import MPTAPIError
+from mpt_api_client.exceptions import MPTHttpError
5
6
7
@pytest.mark.flaky
8
def test_unauthorised(base_url):
9
client = MPTClient.from_config(api_token="TKN-invalid", base_url=base_url) # noqa: S106
10
11
- with pytest.raises(MPTAPIError, match=r"401 Unauthorized"):
+ with pytest.raises(MPTHttpError, match=r"401 Unauthorized"):
12
client.catalog.products.fetch_page()
13
14
0 commit comments