@@ -25,7 +25,10 @@ async def test_registers_new_schema_if_it_doesnt_conflict_with_existing_events(
2525 ):
2626 client = database .with_authorization .client
2727
28- await client .register_event_schema ("com.bar.baz" , '{"type":"object"}' )
28+ await client .register_event_schema (
29+ "com.bar.baz" ,
30+ {"type" : "object" }
31+ )
2932
3033 @staticmethod
3134 @pytest .mark .asyncio
@@ -48,7 +51,7 @@ async def test_throws_error_if_schema_conflicts_with_existing_events(
4851 with pytest .raises (ClientError , match = "additionalProperties" ):
4952 await client .register_event_schema (
5053 "com.gornisht.ekht" ,
51- ' {"type":"object","additionalProperties":false}'
54+ {"type" : "object" , "additionalProperties" : False }
5255 )
5356
5457 @staticmethod
@@ -60,13 +63,13 @@ async def test_throws_error_if_schema_already_exists(
6063
6164 await client .register_event_schema (
6265 "com.gornisht.ekht" ,
63- ' {"type":"object","additionalProperties":false}'
66+ {"type" : "object" , "additionalProperties" : False }
6467 )
6568
6669 with pytest .raises (ClientError , match = "schema already exists" ):
6770 await client .register_event_schema (
6871 "com.gornisht.ekht" ,
69- ' {"type":"object","additionalProperties":false}'
72+ {"type" : "object" , "additionalProperties" : False }
7073 )
7174
7275 @staticmethod
@@ -77,7 +80,7 @@ async def test_throws_error_if_schema_is_invalid(
7780 client = database .with_authorization .client
7881
7982 with pytest .raises (ClientError , match = "'/type' does not validate" ):
80- await client .register_event_schema ("com.gornisht.ekht" , ' {"type":"gurkenwasser"}' )
83+ await client .register_event_schema ("com.gornisht.ekht" , {"type" : "gurkenwasser" })
8184
8285
8386class TestRegisterEventSchemaWithMockServer :
0 commit comments