From 9baa55436bc5a98d118a17656bbf25e563522964 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Sun, 29 Oct 2023 06:59:37 -0500 Subject: Add unit tests --- tests/test_factory.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_factory.py (limited to 'tests/test_factory.py') diff --git a/tests/test_factory.py b/tests/test_factory.py new file mode 100644 index 0000000..024c19a --- /dev/null +++ b/tests/test_factory.py @@ -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!' \ No newline at end of file -- cgit v1.2.3