Skip to content

Commit

Permalink
core: Adjust tests for new InvalidIdError
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Blin <kblin@biosustain.dtu.dk>
  • Loading branch information
kblin committed Jan 1, 2020
1 parent 657d2a9 commit 1492661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from ncbi_acc_download.errors import (
BadPatternError,
DownloadError,
InvalidIdError,
)


Expand Down Expand Up @@ -223,7 +224,7 @@ def test_get_stream_bad_status(req):
"""Test getting a download stream handles bad status codes."""
req.get(ENTREZ_URL, text=u'Nope!', status_code=404)
params = dict(id='FAKE')
with pytest.raises(DownloadError):
with pytest.raises(InvalidIdError):
core.get_stream(ENTREZ_URL, params)


Expand Down

0 comments on commit 1492661

Please sign in to comment.