File tree Expand file tree Collapse file tree
tests/integration_tests/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,17 +46,17 @@ async def round_with_matches_dependency(
4646
4747
4848async def stage_dependency (tournament_id : TournamentId , stage_id : StageId ) -> StageWithStageItems :
49- stages = await get_full_tournament_details (
49+ stages_result = await get_full_tournament_details (
5050 tournament_id , no_draft_rounds = False , stage_id = stage_id
5151 )
5252
53- if len (stages ) < 1 :
53+ if len (stages_result ) < 1 :
5454 raise HTTPException (
5555 status_code = status .HTTP_404_NOT_FOUND ,
5656 detail = f"Could not find stage with id { stage_id } " ,
5757 )
5858
59- return stages [0 ]
59+ return stages_result [0 ]
6060
6161
6262async def stage_item_dependency (
Original file line number Diff line number Diff line change 88from bracket .utils .db import fetch_one_parsed_certain
99from bracket .utils .dummy_records import DUMMY_MOCK_TIME , DUMMY_TEAM1 , DUMMY_TOURNAMENT
1010from bracket .utils .http import HTTPMethod
11- from tests .integration_tests .api .shared import SUCCESS_RESPONSE , send_auth_request , send_tournament_request
11+ from tests .integration_tests .api .shared import (
12+ SUCCESS_RESPONSE ,
13+ send_auth_request ,
14+ send_tournament_request ,
15+ )
1216from tests .integration_tests .models import AuthContext
13- from tests .integration_tests .sql import assert_row_count_and_clear , inserted_team , inserted_tournament
17+ from tests .integration_tests .sql import (
18+ assert_row_count_and_clear ,
19+ inserted_team ,
20+ inserted_tournament ,
21+ )
1422
1523
1624@pytest .mark .asyncio (loop_scope = "session" )
You can’t perform that action at this time.
0 commit comments