Skip to content

Commit fc8b9eb

Browse files
committed
Bump mock
1 parent 84aaa95 commit fc8b9eb

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

dev-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
autoflake==1.3
1+
autoflake==1.3.1
22
check-manifest==0.39
33
codecov==2.0.15 # Upload coverage data
44
doc8==0.8.0
@@ -26,5 +26,5 @@ sphinxcontrib-spelling==4.3.0
2626
twine==2.0.0
2727
versioneer==0.18
2828
vulture==1.1
29-
VWS-Python-Mock==2018.12.1.0
29+
VWS-Python-Mock==2019.9.28.0
3030
yapf==0.28.0 # Automatic formatting for Python

tests/test_exceptions.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,20 +262,14 @@ def test_match_processing(
262262
high_quality_image: io.BytesIO,
263263
) -> None:
264264
"""
265-
A ``MatchProcessing`` exception is raised when a deleted target is matched.
265+
A ``MatchProcessing`` exception is raised when a target in processing is
266+
matched.
266267
"""
267-
target_id = vws_client.add_target(
268+
vws_client.add_target(
268269
name='x',
269270
width=1,
270271
image=high_quality_image,
271272
)
272273
with pytest.raises(MatchProcessing) as exc:
273274
cloud_reco_client.query(image=high_quality_image)
274275
assert exc.value.response.status_code == codes.INTERNAL_SERVER_ERROR
275-
vws_client.wait_for_target_processed(target_id=target_id)
276-
cloud_reco_client.query(image=high_quality_image)
277-
vws_client.delete_target(target_id=target_id)
278-
with pytest.raises(MatchProcessing) as exc:
279-
cloud_reco_client.query(image=high_quality_image)
280-
281-
assert exc.value.response.status_code == codes.INTERNAL_SERVER_ERROR

0 commit comments

Comments
 (0)