mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 10:59:50 -04:00
- Migration to add Service.organisation_id
- Add oranisation_id to Service data model. - Update methods to create service and associate service to organisation to set the organisation_id on the Service. - Create the missing test, if the service user email matches a domain for an organisation then associate the service to the organisation and inherit crown and organisation_type from the organisation.
This commit is contained in:
@@ -175,6 +175,7 @@ def test_add_service_to_organisation(sample_service, sample_organisation):
|
||||
id=sample_service.id,
|
||||
version=2
|
||||
).one().organisation_type == sample_organisation.organisation_type
|
||||
assert sample_service.organisation_id == sample_organisation.id
|
||||
|
||||
|
||||
def test_add_service_to_multiple_organisation_raises_error(sample_service, sample_organisation):
|
||||
|
||||
Reference in New Issue
Block a user