diff --git a/tests/test_factory.py b/tests/test_factory.py new file mode 100644 index 0000000..4dc9abf --- /dev/null +++ b/tests/test_factory.py @@ -0,0 +1,9 @@ +from period 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!' \ No newline at end of file