tests and config for pytest and coverage

This commit is contained in:
2021-10-11 01:48:48 -06:00
parent 802418bdf5
commit ff3310f366
4 changed files with 62 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from flaskfdx import create_app
def test_config():
assert not create_app().testing
assert create_app({'TESTING': True}).testing
def test_hello(client):
response = client.get('/hello')
assert response.data == b'Hello World!'