cic-internal-integration/apps/cic-eth/cic_eth/server/test/__init__.py
2021-11-12 11:14:40 +03:00

17 lines
415 B
Python

import logging
import connexion
from flask_testing import TestCase
from cic_eth.server.encoder import JSONEncoder
class BaseTestCase(TestCase):
def create_app(self):
logging.getLogger('connexion.operation').setLevel('ERROR')
app = connexion.App(__name__, specification_dir='../swagger/')
app.app.json_encoder = JSONEncoder
app.add_api('swagger.yaml')
return app.app