Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
fix: expect only one call
Browse files Browse the repository at this point in the history
  • Loading branch information
srwang committed Jul 12, 2023
1 parent 257d224 commit 37fd902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tubular/tests/test_segment_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ def test_send_event_to_segment_error(setup_regulation_api, caplog): # pylint: di
with pytest.raises(Exception):
segment.send_event_to_segment('test.event')

assert mock_post.call_count == 4
assert mock_post.call_count == 1
assert "400 Bad request" in caplog.text

0 comments on commit 37fd902

Please sign in to comment.