Skip to content

Commit

Permalink
Changed test method name
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimarahman committed Jul 9, 2024
1 parent a90e019 commit 1f7eb85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_avro_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def test_avro_encoder_instance(self, requests_mock):
@pytest.fixture
def test_avro_decoder_instance(self, requests_mock):
requests_mock.get(
'https://test_schema_url', text=json.dumps(_TEST_SCHEMA))
'https://test_schema_url', text=json.dumps(LOCATION_NEW))
# requests_mock.get(
# 'https://test_schema_url', text=json.dumps(_TEST_SCHEMA))
return AvroDecoder('https://test_schema_url')

def test_get_json_schema(self, test_avro_encoder_instance,
Expand Down Expand Up @@ -92,7 +94,7 @@ def test_encode_batch_error(self, test_avro_encoder_instance):
with pytest.raises(AvroClientError):
test_avro_encoder_instance.encode_batch(BAD_BATCH)

def test_decode_record_binary(self, test_avro_decoder_instance):
def test_decode_record(self, test_avro_decoder_instance):
TEST_DECODED_RECORD = {"patron_id": 123, "library_branch": "aa"}
TEST_ENCODED_RECORD = b'\xf6\x01\x02\x04aa'
assert test_avro_decoder_instance.decode_record(
Expand Down

0 comments on commit 1f7eb85

Please sign in to comment.