mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-29 22:11:52 -05:00
Merge pull request #2540 from alphagov/remove-old-fields-from-organisations-and-services
Remove old fields from organisations and services
This commit is contained in:
@@ -622,15 +622,18 @@ def create_domain(domain, organisation_id):
|
||||
return domain
|
||||
|
||||
|
||||
def create_organisation(name='test_org_1', active=True, organisation_type=None):
|
||||
def create_organisation(name='test_org_1', active=True, organisation_type=None, domains=None):
|
||||
data = {
|
||||
'name': name,
|
||||
'active': active,
|
||||
'organisation_type': organisation_type
|
||||
'organisation_type': organisation_type,
|
||||
}
|
||||
organisation = Organisation(**data)
|
||||
dao_create_organisation(organisation)
|
||||
|
||||
for domain in domains or []:
|
||||
create_domain(domain, organisation.id)
|
||||
|
||||
return organisation
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user