Skip to content

Instantly share code, notes, and snippets.

@marknagelberg
Created October 14, 2018 00:29
Show Gist options
  • Save marknagelberg/a1ec5be4825d4498bc7c3cdefb9d919f to your computer and use it in GitHub Desktop.
Save marknagelberg/a1ec5be4825d4498bc7c3cdefb9d919f to your computer and use it in GitHub Desktop.
Tests for app deploy
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