@@ -232,12 +232,9 @@ async def test_post_load_cog_bad_req(api_client):
232232 assert await resp .text () == '422: Error loading cog: Invalid extension'
233233
234234async def test_post_load_cog_missing_param (api_client ):
235- resp = await api_client .post ('/load-cog' , json =
236- {
237- 'extension' : 'invalidCog'
238- })
235+ resp = await api_client .post ('/load-cog' , json = {})
239236 assert resp .status == BAD_REQUEST
240- assert await resp .text () == "400: Unsatisfied Arguments: {'package '}"
237+ assert await resp .text () == "400: Unsatisfied Arguments: {'extension '}"
241238
242239async def test_post_load_cog_already_loaded (api_client ):
243240 await api_client .post ('/load-cog' , json =
@@ -286,12 +283,9 @@ async def test_post_unload_cog_not_loaded(api_client):
286283 assert await resp .text () == '422: Error unloading cog: Extension not loaded'
287284
288285async def test_post_unload_cog_missing_param (api_client ):
289- resp = await api_client .post ('/unload-cog' , json =
290- {
291- 'extension' : 'invalidCog'
292- })
286+ resp = await api_client .post ('/unload-cog' , json = {})
293287 assert resp .status == BAD_REQUEST
294- assert await resp .text () == "400: Unsatisfied Arguments: {'package '}"
288+ assert await resp .text () == "400: Unsatisfied Arguments: {'extension '}"
295289
296290async def test_post_unload_base_cog (api_client ):
297291 resp = await api_client .post ('/unload-cog' , json =
0 commit comments