mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Added some tests around creating and updated services
- ensure research mode is respected on creation and update - ensure rest client gives an error for bad research mode update
This commit is contained in:
@@ -42,6 +42,7 @@ def test_create_service(sample_user):
|
||||
assert Service.query.count() == 1
|
||||
assert Service.query.first().name == "service_name"
|
||||
assert Service.query.first().id == service.id
|
||||
assert not Service.query.first().research_mode
|
||||
assert sample_user in Service.query.first().users
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user