euscanwww: Fixed runtests.py and added a simple test for user profile
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
ec2e132583
commit
39e1f95128
@ -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):
|
||||||
|
@ -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="",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user