Created
October 14, 2018 00:29
-
-
Save marknagelberg/a1ec5be4825d4498bc7c3cdefb9d919f to your computer and use it in GitHub Desktop.
Tests for app deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .conftest import new_name, test_client, create_database | |
def test_new_name(new_name): | |
assert new_name.name == 'Mark' | |
def test_test_client(test_client): | |
assert test_client is not None | |
def test_main_page(test_client, create_database): | |
response = test_client.get('/') | |
assert response.status_code == 200 | |
assert b'Hello World!' in response.data | |
assert b'Mark' in response.data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment