From a386cad214a4f78a810dd5ca21d07c6ea500fd5c Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 18 Apr 2020 22:57:35 +0300 Subject: [PATCH] created test that verifies application is running --- test/init_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/init_test.py diff --git a/test/init_test.py b/test/init_test.py new file mode 100644 index 0000000..597d1d1 --- /dev/null +++ b/test/init_test.py @@ -0,0 +1,11 @@ +import unittest +import requests + +class Tester(unittest.TestCase): + def test_home(self): + response = requests.get("http://127.0.0.1:5000") + self.assertEqual(response.status_code, 200) + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file