Skip to content

Commit

Permalink
update url ending
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Aug 13, 2024
1 parent 461afbf commit 91a905d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion game/end_to_end_tests/test_level_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_coins(self):
page = student_login_page.student_login(name, password)

# Goes to rapid router levels
page = self.go_to_reverse("levels")
page = self.go_to_reverse("blockly_levels")

# The coin images for the levels
level_coin_images = page.browser.find_elements(By.CSS_SELECTOR, ("#collapse-4 div img"))
Expand Down
4 changes: 2 additions & 2 deletions game/tests/test_level_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def test_level_of_anonymised_teacher_is_hidden(self):
self.login(email1, password1)

# Check `teacher1` can see `teacher2`'s shared level
levels_url = reverse("levels")
levels_url = reverse("blockly_levels")
response = self.client.get(levels_url)
assert len(response.context["directly_shared_levels"]) == 1

Expand Down Expand Up @@ -463,7 +463,7 @@ def test_level_of_anonymised_student_is_hidden(self):
self.login(email, password)

# Check teacher can see student's shared level
levels_url = reverse("levels")
levels_url = reverse("blockly_levels")
response = self.client.get(levels_url)
assert len(response.context["directly_shared_levels"]) == 1

Expand Down
6 changes: 3 additions & 3 deletions game/tests/test_level_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def level_data(self, levelID):
return json.dumps(data)

def test_list_episodes(self):
url = reverse("levels")
url = reverse("blockly_levels")
response = self.client.get(url)

assert response.status_code == 200
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_custom_levels_access(self):
self.logout()
self.login(email1, password1)

url = reverse("levels")
url = reverse("blockly_levels")
response = self.client.get(url)

assert response.status_code == 200
Expand All @@ -153,7 +153,7 @@ def test_custom_levels_access(self):
self.logout()
self.login(email2, password2)

url = reverse("levels")
url = reverse("blockly_levels")
response = self.client.get(url)

assert response.status_code == 200
Expand Down

0 comments on commit 91a905d

Please sign in to comment.