From c1ae347d5c3bb4c853398bc24c4a8cdfb737b77b Mon Sep 17 00:00:00 2001 From: Dan Kolbman Date: Fri, 26 Jun 2020 11:17:15 -0400 Subject: [PATCH] :bug: Fix release factory --- coordinator/api/factories/release.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/coordinator/api/factories/release.py b/coordinator/api/factories/release.py index 0dded0a..1a75aca 100644 --- a/coordinator/api/factories/release.py +++ b/coordinator/api/factories/release.py @@ -29,8 +29,12 @@ def studies(self, create, extracted, **kwargs): for study in extracted: self.studies.add(study) else: - study = StudyFactory(kf_id="SD_ME0WME0W") - study = StudyFactory(kf_id="SD_W2PQV9FJ") - study = StudyFactory(kf_id="SD_QQXC6C3V") - study = StudyFactory(kf_id="SD_ODWXI1TE") + study = FuzzyChoice( + [ + StudyFactory(kf_id="SD_ME0WME0W"), + StudyFactory(kf_id="SD_W2PQV9FJ"), + StudyFactory(kf_id="SD_QQXC6C3V"), + StudyFactory(kf_id="SD_ODWXI1TE"), + ] + ).fuzz() self.studies.add(study)