diff options
| author | Tom Harley | 2021-07-03 00:18:13 +0000 |
|---|---|---|
| committer | Tom Harley | 2021-07-03 00:18:13 +0000 |
| commit | 7c5c6c52250ca57257ab4af2cc9cdf4425595ec0 (patch) | |
| tree | d36019286125bf984e0c267645d53ff562533ebf /tests/test_factory.py | |
| download | swap-7c5c6c52250ca57257ab4af2cc9cdf4425595ec0.tar.gz swap-7c5c6c52250ca57257ab4af2cc9cdf4425595ec0.zip | |
Initial commit
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..bf2b321 --- /dev/null +++ b/tests/test_factory.py @@ -0,0 +1,11 @@ +from sw import create_app + + +def test_config(): + assert not create_app().testing + assert create_app({"TESTING": True}).testing + + +def test_hello(client): + response = client.post("/auth/login") + assert response.status_code == 422 |
