7

more factories

This commit is contained in:
Boris Besemer
2016-11-30 09:12:41 +01:00
parent 7c6608cf2c
commit 8b72bcbe3c
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import factory
from personalisation.models import Segment, TimeRule
class SegmentFactory(factory.DjangoModelFactory):
name = 'TestSegment'
status = 'enabled'
class Meta:
model = Segment
class TimeRuleFactory(factory.DjangoModelFactory):
class Meta:
model = TimeRule