Skip to content
Snippets Groups Projects
Verified Commit fed0f017 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

test: add factories for Category, Language, LinkType, MusicFocus, Topic and Owner

parent ab1c1386
No related branches found
No related tags found
No related merge requests found
...@@ -7,15 +7,20 @@ from django.contrib.auth.models import Permission, User ...@@ -7,15 +7,20 @@ from django.contrib.auth.models import Permission, User
from django.db.models import QuerySet from django.db.models import QuerySet
from django.utils.timezone import now from django.utils.timezone import now
from program.models import ( from program.models import (
Category,
FundingCategory, FundingCategory,
Host, Host,
Image, Image,
Language,
License, License,
LinkType,
MusicFocus,
Note, Note,
RRule, RRule,
Schedule, Schedule,
Show, Show,
TimeSlot, TimeSlot,
Topic,
Type, Type,
) )
...@@ -117,3 +122,33 @@ class LicenseFactory(DjangoModelFactory): ...@@ -117,3 +122,33 @@ class LicenseFactory(DjangoModelFactory):
class NoteFactory(DjangoModelFactory): class NoteFactory(DjangoModelFactory):
class Meta: class Meta:
model = Note model = Note
class CategoryFactory(DjangoModelFactory):
class Meta:
model = Category
class LanguageFactory(DjangoModelFactory):
class Meta:
model = Language
class LinkTypeFactory(DjangoModelFactory):
class Meta:
model = LinkType
class MusicFocusFactory(DjangoModelFactory):
class Meta:
model = MusicFocus
class TopicFactory(DjangoModelFactory):
class Meta:
model = Topic
class OwnerFactory(DjangoModelFactory):
class Meta:
model = User
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment