Skip to content

Commit

Permalink
adjust factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Banduhn committed Dec 16, 2015
1 parent 72ffc42 commit 2e95378
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions howl/tests/factories/observers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import factory
from factory.fuzzy import FuzzyChoice

from howl.models import Alert, Observer
from howl.operators import get_operator_types
Expand All @@ -16,6 +17,7 @@ class Meta:

class AlertFactory(factory.DjangoModelFactory):
observer = factory.SubFactory(ObserverFactory)
value = FuzzyChoice(range(1, 10))

class Meta:
model = Alert

0 comments on commit 2e95378

Please sign in to comment.