File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,10 @@ def test_produce_no_value_schema(self):
58
58
producer .produce (topic = 'test' , value = {"name" : 'abc"' })
59
59
60
60
def test_produce_no_key_schema (self ):
61
- value_schema = avro .load (os .path .join (avsc_dir , "basic_schema.avsc" ))
62
- producer = AvroProducer ({'schema.registry.url' : 'http://127.0.0.1:9001' }, default_value_schema = value_schema )
61
+ producer = AvroProducer ({'schema.registry.url' : 'http://127.0.0.1:9001' })
63
62
with self .assertRaises (KeySerializerError ):
64
63
# If the key is provided as a dict an avro schema must also be provided
65
- producer .produce (topic = 'test' , value = { "name" : 'abc"' }, key = {"name" : 'abc"' })
64
+ producer .produce (topic = 'test' , key = {"name" : 'abc"' })
66
65
67
66
def test_produce_value_and_key_schemas (self ):
68
67
value_schema = avro .load (os .path .join (avsc_dir , "basic_schema.avsc" ))
You can’t perform that action at this time.
0 commit comments