better test of debug warning
This commit is contained in:
parent
b0bdf31a2c
commit
032245ae3b
2
TODO
2
TODO
|
@ -1,3 +1,5 @@
|
|||
* remove dot before "Nextcloud" at login page.
|
||||
|
||||
* test for complete run with all forms
|
||||
|
||||
* firstname lastname in subject
|
||||
|
|
|
@ -19,6 +19,9 @@ class LoginTestCase(TestCase):
|
|||
with self.settings(DEBUG=True):
|
||||
self.response = self.client.get('/') # we need to do it again with DEBUG = True
|
||||
self.assertContains(self.response, "WARNUNG! Test-MODUS aktiviert. Es werden keine Mails verschickt!", status_code=200)
|
||||
with self.settings(DEBUG=False) and self.settings(MAILTEST=False):
|
||||
self.response = self.client.get('/') # we need to do it again with DEBUG = False
|
||||
self.assertNotContains(self.response, "WARNUNG! Test-MODUS aktiviert. Es werden keine Mails verschickt!", status_code=200)
|
||||
|
||||
def testWizzard(self):
|
||||
''' this test goes thru the whole process of the EvaFormView from start to end '''
|
||||
|
@ -66,8 +69,6 @@ class LoginTestCase(TestCase):
|
|||
raise "NO FORM FOUND"
|
||||
|
||||
|
||||
|
||||
|
||||
class NoLoginTestCase(TestCase):
|
||||
def setUp(self):
|
||||
self.client = Client()
|
||||
|
|
Loading…
Reference in New Issue