done: Test Coverage

This commit is contained in:
Heiko Ludwig 2025-08-12 10:43:47 +02:00
parent 5f1621ffd1
commit fe35e21da6
7 changed files with 261 additions and 0 deletions

11
tests/test_factory.py Normal file
View file

@ -0,0 +1,11 @@
from flaskr 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!'