diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-10-29 06:59:37 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-10-29 06:59:37 -0500 |
| commit | 9baa55436bc5a98d118a17656bbf25e563522964 (patch) | |
| tree | daa01118bd11f5cf13d386d2c727a384563df1da /tests/test_factory.py | |
| parent | 71e7d6516608486f67afad5aad1f7b7f9a45886f (diff) | |
| download | ustayml-9baa55436bc5a98d118a17656bbf25e563522964.tar.gz ustayml-9baa55436bc5a98d118a17656bbf25e563522964.tar.bz2 ustayml-9baa55436bc5a98d118a17656bbf25e563522964.zip | |
Add unit tests
Diffstat (limited to 'tests/test_factory.py')
| -rw-r--r-- | tests/test_factory.py | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
