-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
falls back to configurable default template if the template is missing
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,6 +166,16 @@ def test_team_with_non_default_template_challenge_set(self): | |
|
||
self.assertContains(response, "Use the share buttons below") | ||
|
||
def test_team_with_bad_template_challenge_set(self): | ||
challenge = Challenge.objects.get(name="Recruit first team member") | ||
challenge.template = "neighbourhood/challenges/_missing.html" | ||
challenge.save() | ||
|
||
self.client.force_login(User.objects.get(email="[email protected]")) | ||
response = self.client.get(reverse("team", args=("holyrood-palace",))) | ||
|
||
self.assertContains(response, "Recruit your first team member") | ||
|
||
def test_team_with_no_challenge_set(self): | ||
self.client.force_login( | ||
User.objects.get(email="[email protected]") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters