From c07fe7f8b8b9c8856c96269fe718d72e8b81b85b Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Fri, 15 Apr 2022 14:04:47 -0400 Subject: [PATCH] Add Test Factory --- tests/test_factory.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_factory.py 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