WMDE
/
eva
forked from tohe/eva
7
1
Fork 0

polution from offboarding branch to master removed

This commit is contained in:
Benni Bärmann 2021-11-17 16:14:30 +01:00
parent b41f624a57
commit 9434752ebe
1 changed files with 1 additions and 29 deletions

View File

@ -5,7 +5,7 @@ from django.conf import settings
from django.http import HttpResponse from django.http import HttpResponse
from django.core import mail from django.core import mail
from .forms import ITForm, WorkingForm, OfficeForm, DummyForm, OffboardingForm from .forms import ITForm, WorkingForm, OfficeForm, DummyForm
class LoginTestCase(TestCase): class LoginTestCase(TestCase):
def setUp(self): def setUp(self):
@ -84,35 +84,7 @@ class LoginTestCase(TestCase):
'eva_form_view-current_step': '5', 'eva_form_view-current_step': '5',
}, DummyForm) }, DummyForm)
def test_wizzard_out(self):
''' this test goes through the whole offboarding process of the EvaFormView from start to end '''
self.assertEqual(200, self.response.status_code)
response = self._postform({
'eva_form_view-current_step': '0',
'0-firstname': 'Ara',
'0-lastname': 'Seva',
'0-department': 'CENT',
'0-choice': 'OUT'
}, OffboardingForm)
response = self._postform({
'eva_form_view-current_step': '4',
'4-lastdate_employment': '2021-01-01',
'4-date_returning': '2021-01-01',
'4-lastdate_bvg': '2021-01-01',
'4-lastdate_bahncard': '2021-01-01',
'4-google-ownership': None,
'4-google-autoresponder': None,
'4-delete-account-later-at': None,
}, DummyForm)
response = self._postform({
'eva_form_view-current_step': '5',
}, DummyForm)
def test_mail(self): def test_mail(self):