mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 16:23:44 -04:00
Add and populate crown column to services and services_history
- Added the boolean 'crown' column to services and services_history tables - We populate this column in the same migration script by checking the 'organisation_type' of a service
This commit is contained in:
@@ -87,6 +87,7 @@ def test_create_service(sample_user):
|
||||
email_from="email_from",
|
||||
message_limit=1000,
|
||||
restricted=False,
|
||||
organisation_type='central',
|
||||
created_by=sample_user)
|
||||
dao_create_service(service, sample_user)
|
||||
assert Service.query.count() == 1
|
||||
@@ -100,6 +101,7 @@ def test_create_service(sample_user):
|
||||
assert service_db.prefix_sms is True
|
||||
assert service.active is True
|
||||
assert sample_user in service_db.users
|
||||
assert service_db.crown is True
|
||||
|
||||
|
||||
def test_cannot_create_two_services_with_same_name(sample_user):
|
||||
|
||||
Reference in New Issue
Block a user