1
0
bthlabs-jsonrpc/packages/bthlabs-jsonrpc-django/testing/factories.py
Tomek Wójcik c75ea4ea9d Initial public releases
* `bthlabs-jsonrpc-aiohttp` v1.0.0
* `bthlabs-jsonrpc-core` v1.0.0
* `bthlabs-jsonrpc-django` v1.0.0
2022-06-04 10:41:53 +02:00

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