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
|
| Rev | Line | |
|---|
| [3a89adb] | 1 | import logging
|
|---|
| 2 |
|
|---|
| 3 | import connexion
|
|---|
| 4 | from flask_testing import TestCase
|
|---|
| 5 |
|
|---|
| 6 | from {{packageName}}.encoder import JSONEncoder
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | class 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.