Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Shutik committed Nov 15, 2024
1 parent 64f10dc commit 97d5206
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from unittest.mock import MagicMock, patch





def test_gets_response_after_retry_on_connection_error(shopify_client):
with patch(
"urllib3.connectionpool.HTTPConnectionPool._make_request"
Expand All @@ -26,6 +29,8 @@ def test_gets_response_after_retry_on_connection_error(shopify_client):
assert mock_request.call_count == 4




def test_fails_after_retry_on_connection_error(shopify_client):
with patch(
"urllib3.connectionpool.HTTPConnectionPool._make_request"
Expand Down

0 comments on commit 97d5206

Please sign in to comment.