From 627a2bc1e293d10d7e2d365215ef3157bae7faf8 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 6 Mar 2018 12:11:45 +0000 Subject: [PATCH] Add lead to the lab factory --- opentech/apply/funds/tests/factories/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opentech/apply/funds/tests/factories/models.py b/opentech/apply/funds/tests/factories/models.py index 11253d317..87d4ffcf5 100644 --- a/opentech/apply/funds/tests/factories/models.py +++ b/opentech/apply/funds/tests/factories/models.py @@ -121,6 +121,7 @@ class LabFactory(wagtail_factories.PageFactory): # Will need to update how the stages are identified as Fund Page changes workflow_name = factory.LazyAttribute(lambda o: list(FundType.WORKFLOWS.keys())[o.workflow_stages - 1]) + lead = factory.SubFactory(UserFactory, groups__name=STAFF_GROUP_NAME) class LabFormFactory(AbstractRelatedFormFactory): -- GitLab