testing
This commit is contained in:
@@ -236,7 +236,7 @@ class SearchForm(forms.Form):
|
|||||||
# simple form for Contact page. Sends email to info@rowsandall.com
|
# simple form for Contact page. Sends email to info@rowsandall.com
|
||||||
class EmailForm(forms.Form):
|
class EmailForm(forms.Form):
|
||||||
firstname = forms.CharField(max_length=255)
|
firstname = forms.CharField(max_length=255)
|
||||||
lastname = forms.CharField(max_length=255)
|
lastname = forms.CharField(max_length=255, required=False)
|
||||||
email = forms.EmailField()
|
email = forms.EmailField()
|
||||||
subject = forms.CharField(max_length=255)
|
subject = forms.CharField(max_length=255)
|
||||||
message = forms.CharField(widget=forms.Textarea())
|
message = forms.CharField(widget=forms.Textarea())
|
||||||
|
|||||||
@@ -42,12 +42,7 @@ class ListWorkoutTest(TestCase):
|
|||||||
rowerplan='coach')
|
rowerplan='coach')
|
||||||
|
|
||||||
self.c = Client()
|
self.c = Client()
|
||||||
self.user_workouts = WorkoutFactory.create_batch(len(workouttypes), user=self.r)
|
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||||
i = 0
|
|
||||||
for workouttype in workouttypes:
|
|
||||||
self.user_workouts[i].workouttype = workouttype[0]
|
|
||||||
self.user_workouts[i].save()
|
|
||||||
i = i+1
|
|
||||||
|
|
||||||
self.factory = RequestFactory()
|
self.factory = RequestFactory()
|
||||||
self.password = faker.word()
|
self.password = faker.word()
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user