Skip to content

Commit ad5d64f

Browse files
author
Robert Segal
committed
Fix failing unauthorised e2e test
1 parent 46b7f7b commit ad5d64f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/test_access.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import pytest
22

33
from mpt_api_client import MPTClient
4-
from mpt_api_client.exceptions import MPTAPIError
4+
from mpt_api_client.exceptions import MPTHttpError
55

66

77
@pytest.mark.flaky
88
def test_unauthorised(base_url):
99
client = MPTClient.from_config(api_token="TKN-invalid", base_url=base_url) # noqa: S106
1010

11-
with pytest.raises(MPTAPIError, match=r"401 Unauthorized"):
11+
with pytest.raises(MPTHttpError, match=r"401 Unauthorized"):
1212
client.catalog.products.fetch_page()
1313

1414

0 commit comments

Comments
 (0)