Skip to content

Commit

Permalink
add specific redirecting check
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Aug 28, 2024
1 parent c25b25c commit d781dc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion game/end_to_end_tests/base_game_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def complete_and_check_level(
page,
from_python_den=False,
next_episode=None,
redirects=False,
check_algorithm_score=True,
check_route_score=True,
final_level=False,
Expand All @@ -72,7 +73,7 @@ def complete_and_check_level(
if final_level:
return page
if next_episode is None:
if next_level is None:
if redirects:
page.next_level_redirected(from_python_den)
else:
page.next_level(from_python_den)
Expand Down
2 changes: 1 addition & 1 deletion game/end_to_end_tests/test_play_through.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def test_python_level_040(self):
)

def test_python_level_041(self):
self._complete_level(41, from_python_den=True)
self._complete_level(41, from_python_den=True, redirects=True)

def test_episode_15(self):
self._complete_episode(
Expand Down

0 comments on commit d781dc0

Please sign in to comment.