15 lines
280 B
Python
15 lines
280 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
import factory
|
||
|
|
||
|
from testing.models import Thing
|
||
|
|
||
|
|
||
|
class ThingFactory(factory.django.DjangoModelFactory):
|
||
|
name = factory.Faker('name')
|
||
|
content = factory.Faker('sentence')
|
||
|
is_active = True
|
||
|
owner = None
|
||
|
|
||
|
class Meta:
|
||
|
model = Thing
|