aboutsummaryrefslogtreecommitdiff
path: root/tests/test_app.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-06-19 18:04:24 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-06-19 18:04:24 +0200
commit7ba7354f016bed3ff3b2afff5ecb1aa919a8ed26 (patch)
tree4c1f12b3629a42ac031edf90691f0c63fef1a8ee /tests/test_app.py
parentbf66286309fedc6f0a92d0cd9681d4c6484f30d9 (diff)
Flask Hello World
Diffstat (limited to 'tests/test_app.py')
-rw-r--r--tests/test_app.py14
1 files changed, 14 insertions, 0 deletions
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())