Skip to content

Commit 0fc7adc

Browse files
committed
Removed retry test
1 parent 907cd3a commit 0fc7adc

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/test_avro_client.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import pytest
33
from unittest.mock import patch
44

5+
import requests
6+
57
from nypl_py_utils.classes.avro_client import (
68
AvroClient, AvroClientError, AvroDecoder, AvroEncoder)
79
from requests import session
@@ -48,14 +50,6 @@ def test_get_json_schema_error(self, requests_mock):
4850
with pytest.raises(AvroClientError):
4951
AvroEncoder("https://test_schema_url")
5052

51-
def test_get_json_schema_success_on_retry(self, requests_mock):
52-
requests_mock.get("https://test_schema_url",
53-
[{"exc": ConnectionError},
54-
{"text": str(_TEST_SCHEMA), "status_code": 200}])
55-
56-
test_avro_client = AvroClient("https://test_schema_url")
57-
assert test_avro_client.get_json_schema == _TEST_SCHEMA["data"]["schema"]
58-
5953
def test_bad_json_error(self, requests_mock):
6054
requests_mock.get(
6155
'https://test_schema_url', text='bad json')

0 commit comments

Comments
 (0)