From 7c5c6c52250ca57257ab4af2cc9cdf4425595ec0 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sat, 3 Jul 2021 00:18:13 +0000 Subject: Initial commit --- 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..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 -- cgit v1.2.1