Skip to content

Commit b265513

Browse files
committed
Test status code
1 parent bedca5b commit b265513

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_exceptions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,11 @@ def test_request_time_too_skewed(vws_client: VWS) -> None:
237237
#
238238
# >= 1 ticks are acceptable.
239239
with freeze_time(auto_tick_seconds=time_difference_from_now):
240-
with pytest.raises(RequestTimeTooSkewed):
240+
with pytest.raises(RequestTimeTooSkewed) as exc:
241241
vws_client.get_target_record(target_id='a')
242242

243+
assert exc.value.response.status_code == codes.FORBIDDEN
244+
243245

244246
def test_authentication_failure(high_quality_image: io.BytesIO) -> None:
245247
"""

0 commit comments

Comments
 (0)