@@ -329,9 +329,9 @@ def test_creates_app_on_backend(
329329 )
330330 )
331331
332- respx_mock .post ("/apps/" , json = { "name" : "demo" , "team_id" : team [ "id" ], "directory" : None }). mock (
333- return_value = Response ( 201 , json = _get_random_app ( team_id = team ["id" ]))
334- )
332+ respx_mock .post (
333+ "/apps/" , json = { "name" : "demo" , " team_id" : team ["id" ], "directory" : None }
334+ ). mock ( return_value = Response ( 201 , json = _get_random_app ( team_id = team [ "id" ])))
335335
336336 with (
337337 changing_dir (tmp_path ),
@@ -350,7 +350,15 @@ def test_creates_app_on_backend(
350350def test_creates_app_with_directory (
351351 logged_in_cli : None , tmp_path : Path , respx_mock : respx .MockRouter
352352) -> None :
353- steps = [Keys .ENTER , Keys .ENTER , * "demo" , Keys .ENTER , * "src" , Keys .ENTER , Keys .ENTER ]
353+ steps = [
354+ Keys .ENTER ,
355+ Keys .ENTER ,
356+ * "demo" ,
357+ Keys .ENTER ,
358+ * "src" ,
359+ Keys .ENTER ,
360+ Keys .ENTER ,
361+ ]
354362
355363 team = _get_random_team ()
356364
@@ -361,9 +369,9 @@ def test_creates_app_with_directory(
361369 )
362370 )
363371
364- respx_mock .post ("/apps/" , json = { "name" : "demo" , "team_id" : team [ "id" ], "directory" : "src" }). mock (
365- return_value = Response ( 201 , json = _get_random_app ( team_id = team ["id" ]))
366- )
372+ respx_mock .post (
373+ "/apps/" , json = { "name" : "demo" , " team_id" : team ["id" ], "directory" : "src" }
374+ ). mock ( return_value = Response ( 201 , json = _get_random_app ( team_id = team [ "id" ])))
367375
368376 with (
369377 changing_dir (tmp_path ),
@@ -464,9 +472,9 @@ def test_exits_successfully_when_deployment_is_done(
464472 return_value = Response (200 , json = {"data" : [team_data ]})
465473 )
466474
467- respx_mock .post ("/apps/" , json = { "name" : "demo" , "team_id" : team_data [ "id" ], "directory" : None }). mock (
468- return_value = Response ( 201 , json = app_data )
469- )
475+ respx_mock .post (
476+ "/apps/" , json = { "name" : "demo" , "team_id" : team_data [ "id" ], "directory" : None }
477+ ). mock ( return_value = Response ( 201 , json = app_data ))
470478
471479 respx_mock .get (f"/apps/{ app_data ['id' ]} " ).mock (
472480 return_value = Response (200 , json = app_data )
@@ -720,9 +728,9 @@ def _deploy_without_waiting(respx_mock: respx.MockRouter, tmp_path: Path) -> Res
720728 )
721729 )
722730
723- respx_mock .post ("/apps/" , json = { "name" : "demo" , "team_id" : team_data [ "id" ], "directory" : None }). mock (
724- return_value = Response ( 201 , json = app_data )
725- )
731+ respx_mock .post (
732+ "/apps/" , json = { "name" : "demo" , "team_id" : team_data [ "id" ], "directory" : None }
733+ ). mock ( return_value = Response ( 201 , json = app_data ))
726734
727735 respx_mock .get (f"/apps/{ app_data ['id' ]} " ).mock (
728736 return_value = Response (200 , json = app_data )
0 commit comments