implemented mocking topics

This commit is contained in:
CDaut 2022-06-01 16:54:47 +02:00 committed by CDaut
parent f3297544f9
commit dfb3b30271
12 changed files with 169 additions and 16 deletions

View file

@ -0,0 +1,11 @@
import factory
from blog.models import Topic
class TopicFactory(factory.Factory):
class Meta:
model = Topic
name = factory.Faker("word")
numbered = False