@@ -46,9 +46,7 @@ def test_get_mappings_with_filters(
4646 ) -> None :
4747 """Test getting mappings with filter options."""
4848 route = respx .get (f"{ base_url } /concepts/201826/mappings" ).mock (
49- return_value = Response (
50- 200 , json = {"success" : True , "data" : {"mappings" : []}}
51- )
49+ return_value = Response (200 , json = {"success" : True , "data" : {"mappings" : []}})
5250 )
5351
5452 sync_client .mappings .get (
@@ -95,9 +93,7 @@ def test_map_concepts_with_options(
9593 ) -> None :
9694 """Test mapping concepts with additional options."""
9795 route = respx .post (f"{ base_url } /concepts/map" ).mock (
98- return_value = Response (
99- 200 , json = {"success" : True , "data" : {"mappings" : []}}
100- )
96+ return_value = Response (200 , json = {"success" : True , "data" : {"mappings" : []}})
10197 )
10298
10399 sync_client .mappings .map (
@@ -114,7 +110,6 @@ def test_map_concepts_with_options(
114110 assert route .calls [0 ].request .content
115111
116112
117-
118113class TestAsyncMappingsResource :
119114 """Tests for the asynchronous AsyncMappings resource."""
120115
@@ -125,9 +120,7 @@ async def test_async_get_mappings(
125120 ) -> None :
126121 """Test async getting mappings."""
127122 respx .get (f"{ base_url } /concepts/201826/mappings" ).mock (
128- return_value = Response (
129- 200 , json = {"success" : True , "data" : {"mappings" : []}}
130- )
123+ return_value = Response (200 , json = {"success" : True , "data" : {"mappings" : []}})
131124 )
132125
133126 result = await async_client .mappings .get (201826 )
@@ -140,9 +133,7 @@ async def test_async_get_mappings_with_filters(
140133 ) -> None :
141134 """Test async mappings with filters."""
142135 route = respx .get (f"{ base_url } /concepts/201826/mappings" ).mock (
143- return_value = Response (
144- 200 , json = {"success" : True , "data" : {"mappings" : []}}
145- )
136+ return_value = Response (200 , json = {"success" : True , "data" : {"mappings" : []}})
146137 )
147138
148139 await async_client .mappings .get (
@@ -162,9 +153,7 @@ async def test_async_map_concepts(
162153 ) -> None :
163154 """Test async mapping concepts."""
164155 respx .post (f"{ base_url } /concepts/map" ).mock (
165- return_value = Response (
166- 200 , json = {"success" : True , "data" : {"mappings" : []}}
167- )
156+ return_value = Response (200 , json = {"success" : True , "data" : {"mappings" : []}})
168157 )
169158
170159 result = await async_client .mappings .map (
@@ -181,9 +170,7 @@ async def test_async_map_concepts_with_options(
181170 ) -> None :
182171 """Test async mapping with options."""
183172 route = respx .post (f"{ base_url } /concepts/map" ).mock (
184- return_value = Response (
185- 200 , json = {"success" : True , "data" : {"mappings" : []}}
186- )
173+ return_value = Response (200 , json = {"success" : True , "data" : {"mappings" : []}})
187174 )
188175
189176 await async_client .mappings .map (
@@ -194,4 +181,3 @@ async def test_async_map_concepts_with_options(
194181 )
195182
196183 assert route .calls [0 ].request .content
197-
0 commit comments