source: src/mapservice/codegen/templates/__init__test.mustache@ 5e4cb73

debian/bullseye
Last change on this file since 5e4cb73 was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Refactored mapservice

  • mapservice is a connexion python webservice with openapi defined api
  • mapservice-webclient is a angular app, consuming the openapi webservice mapservice
  • Property mode set to 100644
File size: 416 bytes
Line 
1import logging
2
3import connexion
4from flask_testing import TestCase
5
6from {{packageName}}.encoder import JSONEncoder
7
8
9class BaseTestCase(TestCase):
10
11 def create_app(self):
12 logging.getLogger('connexion.operation').setLevel('ERROR')
13 app = connexion.App(__name__, specification_dir='../openapi/')
14 app.app.json_encoder = JSONEncoder
15 app.add_api('openapi.yaml')
16 return app.app
Note: See TracBrowser for help on using the repository browser.