Skip to content

Commit

Permalink
fixed the pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
liadmagen committed Sep 23, 2018
1 parent 5b28652 commit 062937a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/interface_adapters/test_process_arxiv_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def test_arxiv_doc_list_handles_generic_error():

response_object = arxiv_doc_list_use_case.execute(request_object)

if not bool(response_object):
raise AssertionError("response_object is empty")
if bool(response_object):
raise AssertionError("response_object supposed to be empty")
if response_object.value != {
"type": res.ResponseFailure.SYSTEM_ERROR,
"message": "Exception: Just an error message",
Expand All @@ -140,8 +140,8 @@ def test_arxiv_doc_list_handles_bad_request():

response_object = arxiv_doc_list_use_case.execute(request_object)

if not bool(response_object):
raise AssertionError("response_object is empty")
if bool(response_object):
raise AssertionError("response_object supposed to be empty")
if response_object.value != {
"type": res.ResponseFailure.PARAMETERS_ERROR,
"message": "filters: Is not iterable",
Expand Down

0 comments on commit 062937a

Please sign in to comment.