Fix ExperimentFactory for firefox version and channel fixes #297
This commit is contained in:
Родитель
db7e3a7ffa
Коммит
de28463f3f
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче