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

test: update test factories Host -> Profile

parent dd6c7876
No related branches found
No related tags found
No related merge requests found
...@@ -9,13 +9,13 @@ from django.utils.timezone import now ...@@ -9,13 +9,13 @@ from django.utils.timezone import now
from program.models import ( from program.models import (
Category, Category,
FundingCategory, FundingCategory,
Host,
Image, Image,
Language, Language,
License, License,
LinkType, LinkType,
MusicFocus, MusicFocus,
Note, Note,
Profile,
RadioSettings, RadioSettings,
RRule, RRule,
Schedule, Schedule,
...@@ -54,11 +54,11 @@ class UserWithPermissionsFactory(DjangoModelFactory): ...@@ -54,11 +54,11 @@ class UserWithPermissionsFactory(DjangoModelFactory):
self.user_permissions.add(permission) self.user_permissions.add(permission)
class HostFactory(DjangoModelFactory): class ProfileFactory(DjangoModelFactory):
class Meta: class Meta:
model = Host model = Profile
name = Sequence(lambda n: "host %d" % n) name = Sequence(lambda n: "profile %d" % n)
class ImageFactory(DjangoModelFactory): class ImageFactory(DjangoModelFactory):
......
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