Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ram81 committed Aug 7, 2021
1 parent d8f271c commit f5688db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/challenges/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2962,6 +2962,8 @@ def test_get_challenge_phase_split(self):
"visibility": self.challenge_phase_split.visibility,
"show_leaderboard_by_latest_submission": self.challenge_phase_split.show_leaderboard_by_latest_submission,
"show_execution_time": False,
"leaderboard_schema": self.challenge_phase_split.leaderboard.schema,
"is_multi_metric_leaderboard": self.challenge_phase_split.is_multi_metric_leaderboard,
}
]
self.client.force_authenticate(user=self.participant_user)
Expand Down Expand Up @@ -2999,6 +3001,8 @@ def test_get_challenge_phase_split_when_user_is_challenge_host(self):
"visibility": self.challenge_phase_split.visibility,
"show_leaderboard_by_latest_submission": self.challenge_phase_split.show_leaderboard_by_latest_submission,
"show_execution_time": False,
"leaderboard_schema": self.challenge_phase_split.leaderboard.schema,
"is_multi_metric_leaderboard": self.challenge_phase_split.is_multi_metric_leaderboard,
},
{
"id": self.challenge_phase_split_host.id,
Expand All @@ -3009,6 +3013,8 @@ def test_get_challenge_phase_split_when_user_is_challenge_host(self):
"visibility": self.challenge_phase_split_host.visibility,
"show_leaderboard_by_latest_submission": self.challenge_phase_split_host.show_leaderboard_by_latest_submission,
"show_execution_time": False,
"leaderboard_schema": self.challenge_phase_split_host.leaderboard.schema,
"is_multi_metric_leaderboard": self.challenge_phase_split_host.is_multi_metric_leaderboard,
},
]
self.client.force_authenticate(user=self.user)
Expand Down

0 comments on commit f5688db

Please sign in to comment.