mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-13 08:34:33 -05:00
You will need to run the /scripts/bootstrap.sh to create the database for test and the app.
11 lines
450 B
Python
11 lines
450 B
Python
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')
|