euscanwww: Fixed runtests.py and added a simple test for user profile

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-08-14 14:07:23 +02:00
parent ec2e132583
commit 39e1f95128
2 changed files with 11 additions and 1 deletions

View File

@ -37,6 +37,14 @@ class PagesTest(SystemTestCase):
response = self.get("api") response = self.get("api")
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
def test_profile(self):
response = self.get("accounts_index")
self.assertEqual(response.status_code, 302)
with self.login():
response = self.get("accounts_index")
self.assertEqual(response.status_code, 200)
class PackageTests(SystemTestCase): class PackageTests(SystemTestCase):
def setUp(self): def setUp(self):

View File

@ -29,7 +29,9 @@ settings.configure(
USE_TZ=True, USE_TZ=True,
TASKS_CONCURRENTLY=8, TASKS_CONCURRENTLY=8,
TASKS_SUBTASK_PACKAGES=32, TASKS_SUBTASK_PACKAGES=32,
AUTH_PROFILE_MODULE="djeuscan.UserProfile" AUTH_PROFILE_MODULE="djeuscan.UserProfile",
RECAPTCHA_PUBLIC_KEY="",
RECAPTCHA_PRIVATE_KEY="",
) )