From 7ba7354f016bed3ff3b2afff5ecb1aa919a8ed26 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 19 Jun 2023 18:04:24 +0200 Subject: Flask Hello World --- tests/test_app.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_app.py (limited to 'tests') diff --git a/tests/test_app.py b/tests/test_app.py new file mode 100644 index 0000000..6d96fbb --- /dev/null +++ b/tests/test_app.py @@ -0,0 +1,14 @@ +import unittest + +from kerbana import config, create_app + + +class TestBase(unittest.TestCase): + def setUp(self): + test_config = config.TestConfig() + self.app = create_app(test_config) + self.client = self.app.test_client() + + def test_root(self): + res = self.client.get("/") + self.assertEqual("Hello World!", res.data.decode()) -- cgit v1.2.3