forked from wger-project/wger
-
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.
Test under django 1.6, fix some errors and remove deprecated functions
- Loading branch information
1 parent
a5a7075
commit 8bd0937
Showing
26 changed files
with
58 additions
and
49 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Django==1.5.5 | ||
Django==1.6 | ||
django-browserid==0.9 | ||
django-recaptcha | ||
reportlab | ||
|
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
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
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
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 |
---|---|---|
|
@@ -38,7 +38,7 @@ def preferences(self): | |
|
||
# Fetch the preferences page | ||
response = self.client.get(reverse('preferences')) | ||
profile = response.context['user'].get_profile() | ||
profile = response.context['user'].userprofile | ||
self.assertFalse(profile.show_comments) | ||
|
||
self.assertEqual(response.status_code, 200) | ||
|
@@ -53,7 +53,7 @@ def preferences(self): | |
#print response | ||
self.assertEqual(response.status_code, 302) | ||
response = self.client.get(reverse('preferences')) | ||
profile = response.context['user'].get_profile() | ||
profile = response.context['user'].userprofile | ||
#self.assertTrue(profile.show_comments) | ||
self.assertTrue(profile.show_english_ingredients) | ||
self.assertEqual(response.context['user'].email, '[email protected]') | ||
|
@@ -65,7 +65,7 @@ def preferences(self): | |
|
||
self.assertEqual(response.status_code, 302) | ||
response = self.client.get(reverse('preferences')) | ||
profile = response.context['user'].get_profile() | ||
profile = response.context['user'].userprofile | ||
self.assertFalse(profile.show_comments) | ||
self.assertTrue(profile.show_english_ingredients) | ||
self.assertEqual(response.context['user'].email, '') | ||
|
@@ -99,7 +99,7 @@ def preferences(self): | |
self.assertEqual(response.status_code, 200) | ||
|
||
response = self.client.get(reverse('preferences')) | ||
profile = response.context['user'].get_profile() | ||
profile = response.context['user'].userprofile | ||
self.assertTrue(profile.show_comments) | ||
self.assertFalse(profile.show_english_ingredients) | ||
self.assertEqual(response.context['user'].email, '[email protected]') | ||
|
@@ -114,7 +114,7 @@ def preferences(self): | |
self.assertEqual(response.status_code, 200) | ||
|
||
response = self.client.get(reverse('preferences')) | ||
profile = response.context['user'].get_profile() | ||
profile = response.context['user'].userprofile | ||
self.assertTrue(profile.show_comments) | ||
self.assertTrue(profile.show_english_ingredients) | ||
self.assertEqual(response.context['user'].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
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
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
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
Oops, something went wrong.