feat: initialize flask app skeleton

This commit is contained in:
ila
2026-07-04 23:20:40 +08:00
parent 22e69ccce1
commit 5a7ea348e5
12 changed files with 82 additions and 17 deletions
+18
View File
@@ -0,0 +1,18 @@
import unittest
from app import create_app
class AppFactoryTest(unittest.TestCase):
def test_health_check_returns_ok(self):
app = create_app({"TESTING": True})
client = app.test_client()
response = client.get("/health")
self.assertEqual(response.status_code, 200)
self.assertEqual(response.get_json(), {"ok": True})
if __name__ == "__main__":
unittest.main()