Commit 094a0230 by Karsa Zoltán István

set factory-boy and UserFactory model

parent 50762c41
...@@ -658,7 +658,8 @@ def FakeRequestFactory(user=None, **kwargs): ...@@ -658,7 +658,8 @@ def FakeRequestFactory(user=None, **kwargs):
class UserFactory(Factory): class UserFactory(Factory):
''' using the excellent factory_boy library ''' ''' using the excellent factory_boy library '''
FACTORY_FOR = User class Meta:
model = User
username = Sequence(lambda i: 'test%d' % i) username = Sequence(lambda i: 'test%d' % i)
first_name = 'John' first_name = 'John'
last_name = 'Doe' last_name = 'Doe'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment