chol
/
eva
forked from tohe/eva
1
0
Fork 0

better test of debug warning

This commit is contained in:
Benni Bärmann 2021-09-20 10:28:53 +02:00
parent b0bdf31a2c
commit 032245ae3b
2 changed files with 5 additions and 2 deletions

2
TODO
View File

@ -1,3 +1,5 @@
* remove dot before "Nextcloud" at login page.
* test for complete run with all forms
* firstname lastname in subject

View File

@ -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()