Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
libretto committed May 8, 2024
1 parent 07620d0 commit 6515f2c
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tests/integration/test_schema_avro_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
Copyright (c) 2023 Aiven Ltd
See LICENSE for details
"""
import json

from karapace.client import Client

import json

baseurl = "http://localhost:8081"


Expand All @@ -16,10 +16,7 @@ async def test_avro_references(registry_async_client: Client) -> None:
"type": "record",
"name": "Country",
"namespace": "com.netapp",
"fields": [
{"name": "name", "type": "string"},
{"name": "code", "type": "string"}
]
"fields": [{"name": "name", "type": "string"}, {"name": "code", "type": "string"}],
}

schema_address = {
Expand All @@ -30,14 +27,11 @@ async def test_avro_references(registry_async_client: Client) -> None:
{"name": "street", "type": "string"},
{"name": "city", "type": "string"},
{"name": "postalCode", "type": "string"},
{"name": "country", "type": "Country"}
]

{"name": "country", "type": "Country"},
],
}

res = await registry_async_client.post(
f"subjects/country/versions", json={"schema": json.dumps(schema_country)}
)
res = await registry_async_client.post("subjects/country/versions", json={"schema": json.dumps(schema_country)})
assert res.status_code == 200
assert "id" in res.json()
country_references = [{"name": "country.proto", "subject": "country", "version": 1}]
Expand Down

0 comments on commit 6515f2c

Please sign in to comment.