Skip to content
Snippets Groups Projects
Commit 84579414 authored by Chris Pastl's avatar Chris Pastl
Browse files

move back __init__.py, add dummy to discover tests

parent 4ca86069
No related branches found
No related tags found
1 merge request!7Commit the OpenAPI generated tests into "./tests" and make them run successfully #24
import logging
import connexion
from flask_testing import TestCase
from aura_engine_api.rest.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
import logging
import connexion
from flask_testing import TestCase
from aura_engine_api.rest.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
......@@ -22,7 +22,7 @@ from __future__ import absolute_import
from flask import json
from aura_engine_api.rest.models.clock_info import ClockInfo # noqa: E501
from tests import BaseTestCase
from aura_engine_api.rest.test import BaseTestCase
class TestInternalController(BaseTestCase):
......
......@@ -20,7 +20,7 @@
from __future__ import absolute_import
# from aura_engine_api.rest.models.track import Track # noqa: E501
from tests import BaseTestCase
from aura_engine_api.rest.test import BaseTestCase
# from flask import json
# from six import BytesIO
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment