Fix ExperimentFactory for firefox version and channel fixes #297

This commit is contained in:
Jared Kerim 2018-02-22 12:25:51 -05:00 коммит произвёл Jared Kerim
Родитель db7e3a7ffa
Коммит de28463f3f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -39,9 +39,9 @@ class ExperimentFactory(factory.django.DjangoModelFactory):
pref_branch = factory.LazyAttribute(
lambda o: random.choice(Experiment.PREF_BRANCH_CHOICES)[0])
firefox_version = factory.LazyAttribute(
lambda o: random.choice(Experiment.VERSION_CHOICES)[0])
lambda o: random.choice(Experiment.VERSION_CHOICES[1:])[0])
firefox_channel = factory.LazyAttribute(
lambda o: random.choice(Experiment.CHANNEL_CHOICES)[0])
lambda o: random.choice(Experiment.CHANNEL_CHOICES[1:])[0])
objectives = factory.LazyAttribute(
lambda o: faker.text(random.randint(500, 5000)))
analysis = factory.LazyAttribute(