From aff39152bc5a28c502e5ffb27d4a7cf1204c7aa3 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Tue, 17 Dec 2019 11:26:52 +0000 Subject: [PATCH] Bump to latest mock --- dev-requirements.txt | 2 +- tests/test_exceptions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 73dd20720..3b1a73e61 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,7 +4,7 @@ PyYAML==5.2 Pygments==2.5.2 Sphinx-Substitution-Extensions==2019.6.15.0 Sphinx==2.3.0 -VWS-Python-Mock==2019.12.7.1 +VWS-Python-Mock==2019.12.17.0 VWS-Test-Fixtures==2019.12.13.1 autoflake==1.3.1 check-manifest==0.40 diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 7316bd553..cf420cf55 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -49,12 +49,12 @@ def test_image_too_large( assert exc.value.response.status_code == codes.UNPROCESSABLE_ENTITY -@pytest.mark.parametrize('target_id', ['x', 'x/1']) -def test_invalid_given_id(vws_client: VWS, target_id: str) -> None: +def test_invalid_given_id(vws_client: VWS) -> None: """ Giving an invalid ID to a helper which requires a target ID to be given causes an ``UnknownTarget`` exception to be raised. """ + target_id = '12345abc' with pytest.raises(UnknownTarget) as exc: vws_client.delete_target(target_id=target_id) assert exc.value.response.status_code == codes.NOT_FOUND