@@ -91,7 +91,7 @@ def test_json_record_serialization(kafka_cluster, load_file):
9191
9292 """
9393 topic = kafka_cluster .create_topic ("serialization-json" )
94- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
94+ sr = kafka_cluster .schema_registry ()
9595
9696 schema_str = load_file ("product.json" )
9797 value_serializer = JSONSerializer (schema_str , sr )
@@ -139,7 +139,7 @@ def test_json_record_serialization_incompatible(kafka_cluster, load_file):
139139
140140 """
141141 topic = kafka_cluster .create_topic ("serialization-json" )
142- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
142+ sr = kafka_cluster .schema_registry ()
143143
144144 schema_str = load_file ("product.json" )
145145 value_serializer = JSONSerializer (schema_str , sr )
@@ -165,7 +165,7 @@ def test_json_record_serialization_no_title(kafka_cluster, load_file):
165165 load_file (callable(str)): JSON Schema file reader
166166
167167 """
168- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
168+ sr = kafka_cluster .schema_registry ()
169169 schema_str = load_file ('not_title.json' )
170170
171171 with pytest .raises (ValueError ,
@@ -184,7 +184,7 @@ def test_json_record_serialization_custom(kafka_cluster, load_file):
184184
185185 """
186186 topic = kafka_cluster .create_topic ("serialization-json" )
187- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
187+ sr = kafka_cluster .schema_registry ()
188188
189189 schema_str = load_file ("product.json" )
190190 value_serializer = JSONSerializer (schema_str , sr ,
@@ -228,7 +228,7 @@ def test_json_record_deserialization_mismatch(kafka_cluster, load_file):
228228
229229 """
230230 topic = kafka_cluster .create_topic ("serialization-json" )
231- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
231+ sr = kafka_cluster .schema_registry ()
232232
233233 schema_str = load_file ("contractor.json" )
234234 schema_str2 = load_file ("product.json" )
0 commit comments