Add platform_admin boolean on the User data model.

This commit is contained in:
Rebecca Law
2016-03-17 10:37:24 +00:00
parent 0be235e551
commit bd2d77fec8
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):