From 2fd721d3e349270bded0f6c7e550146c8ad085fc Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Fri, 6 Sep 2019 16:23:48 +0200 Subject: [PATCH] Add test for graphql endpoint --- test/test_graphql.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test_graphql.py diff --git a/test/test_graphql.py b/test/test_graphql.py new file mode 100644 index 0000000..98b9e2d --- /dev/null +++ b/test/test_graphql.py @@ -0,0 +1,17 @@ + +import unittest +from os import environ +from app import app + +class GraphQlTests(unittest.TestCase): + + def setUp(self): + self.app = app.test_client() + self.app.testing = True + + def tearDown(self): + pass + + def test_graphql_home(self): + result = self.app.get('/graphql') + self.assertEqual(result.status_code, 400) -- GitLab