Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Mar 2, 2024
1 parent f4b14e5 commit 205053b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,19 @@ def test_wait(self):
]
)
self.cli.wait(self.mock_id, timeout=2)

def test_wait_no_state_change(self):
with requests_mock.Mocker() as m:
m.get(
"%s/ga4gh/tes/v1/tasks/%s" % (self.mock_url, self.mock_id),
[
{"status_code": 200, "json": {"id": self.mock_id, "state": "RUNNING"}},
{"status_code": 200, "json": {"id": self.mock_id, "state": "RUNNING"}},
# Continues to return RUNNING state
]
)
with self.assertRaises(TimeoutError):
self.cli.wait(self.mock_id, timeout=2)

def test_request_params(self):

Expand Down

0 comments on commit 205053b

Please sign in to comment.