passing first races test
This commit is contained in:
@@ -103,6 +103,7 @@ def get_random_file(filename='rowers/tests/testdata/testdata.csv',name=''):
|
||||
|
||||
|
||||
hours = int(totaltime/3600.)
|
||||
|
||||
minutes = int((totaltime - 3600.*hours)/60.)
|
||||
seconds = int(totaltime - 3600.*hours - 60.*minutes)
|
||||
tenths = int(10*(totaltime - 3600.*hours - 60.*minutes - seconds))
|
||||
@@ -138,9 +139,10 @@ def get_random_file(filename='rowers/tests/testdata/testdata.csv',name=''):
|
||||
class UserFactory(factory.DjangoModelFactory):
|
||||
class Meta:
|
||||
model = User
|
||||
django_get_or_create = ('username',)
|
||||
|
||||
email = faker.email()
|
||||
username = faker.profile()['username']
|
||||
email = factory.LazyAttribute(lambda _: faker.email())
|
||||
username = factory.LazyAttribute(lambda _: faker.profile()['username'])
|
||||
|
||||
first_name = faker.name().split(' ')[0]
|
||||
last_name = faker.name().split(' ')[0]
|
||||
|
||||
Reference in New Issue
Block a user