Skip to content

Commit

Permalink
♻️ Add states to release factory
Browse files Browse the repository at this point in the history
  • Loading branch information
dankolbman committed Apr 20, 2020
1 parent 744a2a1 commit 4d6eeef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coordinator/api/factories/release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import factory
from factory.fuzzy import FuzzyChoice

from coordinator.api.models.release import Release
from coordinator.api.factories.study import StudyFactory
Expand All @@ -14,6 +15,9 @@ class Meta:
tasks = factory.RelatedFactory(
"coordinator.api.factories.task.TaskFactory", "release"
)
state = FuzzyChoice(
["waiting", "failed", "canceled", "staged", "rejected", "published"]
)

@factory.post_generation
def studies(self, create, extracted, **kwargs):
Expand Down

0 comments on commit 4d6eeef

Please sign in to comment.