mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-12 03:05:19 -04:00
upgrade to oas 3
This commit is contained in:
parent
42f9ede4bf
commit
5d1e6b3235
10 changed files with 178 additions and 134 deletions
|
@ -7,6 +7,7 @@ import zipfile
|
|||
from six import BytesIO
|
||||
|
||||
from unittest.mock import patch
|
||||
from openapi_spec_validator import validate_spec
|
||||
|
||||
import main
|
||||
|
||||
|
@ -420,6 +421,9 @@ class Mat2APITestCase(unittest.TestCase):
|
|||
self.assertEqual(400, request.status_code)
|
||||
self.assertEqual("Failed decoding file", error_message)
|
||||
|
||||
def test_valid_opena_api_spec(self):
|
||||
spec = self.app.get('apispec_1.json').get_json()
|
||||
validate_spec(spec)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue