added department "kommunikation und events"

This commit is contained in:
Benni Bärmann 2021-10-14 12:22:30 +02:00
parent ed4d47dd40
commit 476def4826
5 changed files with 13 additions and 1 deletions

View File

@ -16,6 +16,8 @@ environment managing tool
- clone this repository - clone this repository
- ln -sr eva/settings_development.py eva/settings.py
- initialise your database with - initialise your database with
python manage.py migrate python manage.py migrate

2
TODO
View File

@ -1 +1,3 @@
* remove dot before "Nextcloud" at login page. * remove dot before "Nextcloud" at login page.
* add Testmode warning at login screen

View File

@ -139,7 +139,9 @@ STATIC_URL = '/static/'
# settings needed for allauth # settings needed for allauth
SOCIALACCOUNT_PROVIDERS = { SOCIALACCOUNT_PROVIDERS = {
'nextcloud': { 'nextcloud': {
'SERVER': 'https://wolke.wikimedia.de/', 'SERVER': 'https://develwolke.wikimedia.de/',
#'SERVER': 'https://wolke.wikimedia.de',
#'SERVER': 'https://cloud.bucky.uber.space/'
} }
} }

View File

@ -9,6 +9,7 @@ from multiselectfield import MultiSelectField
DEPARTMENT_CHOICES = {'PROG': 'Programme', DEPARTMENT_CHOICES = {'PROG': 'Programme',
'SOFT': 'Softwareentwicklung', 'SOFT': 'Softwareentwicklung',
'CENT': 'Central', 'CENT': 'Central',
'KOMEV': 'Kommunikation und Events',
'VOR': 'Vorstand',} 'VOR': 'Vorstand',}
VENDOR_CHOICES = {'STANDARD': 'Dell Latitude', VENDOR_CHOICES = {'STANDARD': 'Dell Latitude',

View File

@ -26,6 +26,7 @@ class LoginTestCase(TestCase):
self.assertNotContains(self.response, "WARNUNG! Test-MODUS aktiviert. Es werden keine Mails verschickt!", status_code=200) self.assertNotContains(self.response, "WARNUNG! Test-MODUS aktiviert. Es werden keine Mails verschickt!", status_code=200)
def _postform(self, data, expected_form): def _postform(self, data, expected_form):
'''helper function to manage the Wizzard'''
response = self.client.post('/', data, follow=True) response = self.client.post('/', data, follow=True)
# print(type(response)) # print(type(response))
self.assertEqual(200, self.response.status_code) self.assertEqual(200, self.response.status_code)
@ -40,6 +41,10 @@ class LoginTestCase(TestCase):
) )
return response return response
def test_department(self):
self.assertContains(self.response, 'Programme', status_code=200)
self.assertContains(self.response, 'Kommunikation und Events', status_code=200)
def testWizzard(self): def testWizzard(self):
''' this test goes through the whole process of the EvaFormView from start to end ''' ''' this test goes through the whole process of the EvaFormView from start to end '''