email disposable domains
This commit is contained in:
@@ -157,3 +157,25 @@ class NewUserRegistrationTest(TestCase):
|
||||
expected_url='/rowers/register/',
|
||||
status_code=302,target_status_code=200)
|
||||
|
||||
@patch('rowers.dataprep.workout_summary_to_df',side_effect=mock_workout_summaries)
|
||||
def test_newuser_disposable(self,mock_workout_summaries):
|
||||
form_data = {
|
||||
'first_name':'Jan',
|
||||
'last_name':'Roeiert',
|
||||
'email':'jan@powerscrews.com',
|
||||
'username':'janderoeiert',
|
||||
'password1':'Aapindewei2',
|
||||
'password2':'Aapindewei2',
|
||||
'url': '',
|
||||
'tos':True,
|
||||
'weightcategory':'hwt',
|
||||
'adaptiveclass': 'None',
|
||||
'sex':'male',
|
||||
'next':'/rowers/list-workouts',
|
||||
'birthdate':datetime.datetime(year=1970,month=4,day=2)
|
||||
}
|
||||
|
||||
form = RegistrationFormSex(form_data)
|
||||
self.assertFalse(form.is_valid())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user