Merge branch 'master' of https://github.com/alphagov/notifications-api into vb-callback-receipt-1

This commit is contained in:
venusbb
2017-12-05 12:04:18 +00:00
6 changed files with 81 additions and 0 deletions

View File

@@ -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
@@ -96,10 +97,14 @@ def test_create_service(sample_user):
assert service_db.id == service.id
assert service_db.branding == BRANDING_GOVUK
assert service_db.dvla_organisation_id == DVLA_ORG_HM_GOVERNMENT
assert service_db.email_from == 'email_from'
assert service_db.research_mode is False
assert service_db.prefix_sms is True
assert service.active is True
assert sample_user in service_db.users
assert service_db.free_sms_fragment_limit == 250000
assert service_db.organisation_type == 'central'
assert service_db.crown is True
def test_cannot_create_two_services_with_same_name(sample_user):