implemented mocking topics
This commit is contained in:
parent
f3297544f9
commit
dfb3b30271
12 changed files with 169 additions and 16 deletions
11
markdownblog/blog/factories.py
Normal file
11
markdownblog/blog/factories.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue