Skip to content

Commit

Permalink
Use call_count == 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bell committed Apr 18, 2024
1 parent 0d25646 commit c181728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/providers/apache/druid/hooks/test_druid.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ def test_submit_with_false_ssl_arg(self, requests_mock):
with pytest.raises(AirflowException):
self.db_hook.submit_indexing_job("Long json file")

assert task_post.called_once
assert task_post.call_count == 1
assert False is task_post.request_history[0].verify

assert status_check.call_count > 1
assert False is status_check.request_history[0].verify

assert shutdown_post.called_once
assert shutdown_post.call_count == 1
assert False is shutdown_post.request_history[0].verify

def test_submit_with_true_ssl_arg(self, requests_mock):
Expand Down

0 comments on commit c181728

Please sign in to comment.