From bb3af9011eb3223f6c784f5d3cc62baa5456720c Mon Sep 17 00:00:00 2001 From: Gautier P Date: Sat, 15 Feb 2020 16:02:17 +0100 Subject: [PATCH] test(back): add tests --- back/tests/__init__.py | 0 back/tests/test_batimap.py | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 back/tests/__init__.py create mode 100755 back/tests/test_batimap.py diff --git a/back/tests/__init__.py b/back/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/back/tests/test_batimap.py b/back/tests/test_batimap.py new file mode 100755 index 00000000..b311e3cb --- /dev/null +++ b/back/tests/test_batimap.py @@ -0,0 +1,13 @@ +from flask import Flask +from flask_testing import TestCase + + +class APITest(TestCase): + def create_app(self): + app = Flask("batimap") + app.config["TESTING"] = True + return app + + def test_some_json(self): + response = self.client.get("/cities/26120/update") + self.assertEquals(response.json, dict(success=True)) -- GitLab