debian/bullseye
|
Last change
on this file since 3a89adb was 3a89adb, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago |
|
Moved mapservice to python flask with openapi generator
|
-
Property mode
set to
100644
|
|
File size:
779 bytes
|
| Line | |
|---|
| 1 | # coding: utf-8
|
|---|
| 2 |
|
|---|
| 3 | from __future__ import absolute_import
|
|---|
| 4 | import unittest
|
|---|
| 5 |
|
|---|
| 6 | from flask import json
|
|---|
| 7 | from six import BytesIO
|
|---|
| 8 |
|
|---|
| 9 | from openapi_server.models.water import Water # noqa: E501
|
|---|
| 10 | from openapi_server.test import BaseTestCase
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | class TestDefaultController(BaseTestCase):
|
|---|
| 14 | """DefaultController integration test stubs"""
|
|---|
| 15 |
|
|---|
| 16 | def test_water_get_by_id(self):
|
|---|
| 17 | """Test case for water_get_by_id
|
|---|
| 18 |
|
|---|
| 19 | Represents a water
|
|---|
| 20 | """
|
|---|
| 21 | headers = {
|
|---|
| 22 | }
|
|---|
| 23 | response = self.client.open(
|
|---|
| 24 | '/mapservice/v1/waters/{id}'.format(id=56),
|
|---|
| 25 | method='GET',
|
|---|
| 26 | headers=headers)
|
|---|
| 27 | self.assert200(response,
|
|---|
| 28 | 'Response body is : ' + response.data.decode('utf-8'))
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | if __name__ == '__main__':
|
|---|
| 32 | unittest.main()
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.