2022-06-04 08:41:53 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2024-01-15 20:20:10 +00:00
|
|
|
# bthlabs-jsonrpc-django | (c) 2022-present Tomek Wójcik | MIT License
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2022-06-04 08:41:53 +00:00
|
|
|
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
|