Merge pull request #162 from alphagov/platform-admin-role

Add platform_admin boolean on the User data model.
This commit is contained in:
Rebecca Law
2016-03-17 11:33:52 +00:00
3 changed files with 38 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ def test_create_user(notify_api, notify_db, notify_db_session):
assert User.query.count() == 1
assert User.query.first().email_address == email
assert User.query.first().id == user.id
assert not user.platform_admin
def test_get_all_users(notify_api, notify_db, notify_db_session, sample_user):