Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down