@@ -46,7 +46,6 @@ async def test_throws_error_if_schema_conflicts_with_existing_events(
4646 )
4747 ])
4848
49- # Update the error pattern to match the actual error message about missing 'properties'
5049 with pytest .raises (ClientError , match = "missing properties: 'properties'" ):
5150 await client .register_event_schema (
5251 "com.gornisht.ekht" ,
@@ -89,7 +88,6 @@ async def test_throws_error_if_schema_is_invalid(
8988 ):
9089 client = database .with_authorization .client
9190
92- # Update the error pattern to match the actual error message about invalid type
9391 with pytest .raises (ClientError , match = "value must be \" object\" " ):
9492 await client .register_event_schema (
9593 "com.gornisht.ekht" ,
@@ -117,7 +115,7 @@ def handle_register_event_schema(response: Response) -> Response:
117115 client = await get_client (attach_handlers )
118116
119117 with pytest .raises (ServerError ):
120- await client .register_event_schema ("com.foo.bar" , ' {"type":"object"}' )
118+ await client .register_event_schema ("com.foo.bar" , {"type" : "object" })
121119
122120 @staticmethod
123121 @pytest .mark .asyncio
@@ -136,7 +134,7 @@ def handle_register_event_schema(response: Response) -> Response:
136134 client = await get_client (attach_handlers )
137135
138136 with pytest .raises (ClientError ):
139- await client .register_event_schema ("com.foo.bar" , ' {"type":"object"}' )
137+ await client .register_event_schema ("com.foo.bar" , {"type" : "object" })
140138
141139 @staticmethod
142140 @pytest .mark .asyncio
@@ -154,7 +152,7 @@ def handle_register_event_schema(response: Response) -> Response:
154152 client = await get_client (attach_handlers )
155153
156154 with pytest .raises (ClientError ):
157- await client .register_event_schema ("com.foo.bar" , ' {"type":"object"}' )
155+ await client .register_event_schema ("com.foo.bar" , {"type" : "object" })
158156
159157 @staticmethod
160158 @pytest .mark .asyncio
@@ -174,4 +172,4 @@ def handle_register_event_schema(response: Response) -> Response:
174172 client = await get_client (attach_handlers )
175173
176174 with pytest .raises (ServerError ):
177- await client .register_event_schema ("com.foo.bar" , ' {"type":"object"}' )
175+ await client .register_event_schema ("com.foo.bar" , {"type" : "object" })
0 commit comments