108536234: created users and roles data and domain model.

You will need to run the /scripts/bootstrap.sh to create the database for test and the app.
This commit is contained in:
Rebecca Law
2015-11-25 15:29:12 +00:00
parent be6b89eea7
commit abe1d8ae17
24 changed files with 519 additions and 89 deletions

View File

@@ -1,2 +1,10 @@
def test_app():
assert 1 == 1
def test_index_returns_200(notifications_admin):
response = notifications_admin.test_client().get('/index')
assert response.status_code == 200
assert response.data.decode('utf-8') == 'Hello from notifications-admin'
def test_helloworld_returns_200(notifications_admin):
response = notifications_admin.test_client().get('/helloworld')
assert response.status_code == 200
assert 'Hello world!' in response.data.decode('utf-8')