Added test coverage

This commit is contained in:
2021-02-28 01:28:04 +00:00
parent 0e4c6b5d40
commit a567330a68
6 changed files with 35 additions and 19 deletions

17
tests/test_website.py Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import pytest
from my_homepage import create_app
@pytest.fixture
def app():
app = create_app({"TESTING": True})
yield app
@pytest.fixture
def client(app):
return app.test_client()
def test_app(client):
response = client.get("/")
assert(response.status_code == 200)