From 299c399cabdde0be425a36a02f80b441a2b8143d Mon Sep 17 00:00:00 2001 From: Chris Pastl <chris@crispybits.app> Date: Sun, 4 Jun 2023 17:14:51 +0200 Subject: [PATCH] Add BaseTestCase, use app generated in aura module --- tests/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..d150efd 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,13 @@ +import logging + +from flask_testing import TestCase + +from aura_engine_api.app import app +from aura_engine_api.rest.encoder import JSONEncoder + + +class BaseTestCase(TestCase): + def create_app(self): + logging.getLogger("connexion.operation").setLevel("ERROR") + app.json_encoder = JSONEncoder + return app -- GitLab