mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-23 08:39:57 -05:00
updated flask and flasgger
This commit is contained in:
parent
42de0752a1
commit
ee0727bfb3
3
main.py
3
main.py
@ -34,7 +34,8 @@ def create_app(test_config=None):
|
|||||||
|
|
||||||
# Restful API hookup
|
# Restful API hookup
|
||||||
app.register_blueprint(rest_api.api_bp)
|
app.register_blueprint(rest_api.api_bp)
|
||||||
app.json_encoder = LazyJSONEncoder
|
app.json_provider_class = LazyJSONEncoder
|
||||||
|
app.json = LazyJSONEncoder(app)
|
||||||
|
|
||||||
dirname = os.path.dirname(__file__)
|
dirname = os.path.dirname(__file__)
|
||||||
with open(os.path.join(dirname, 'matweb/oas/components.yml')) as file:
|
with open(os.path.join(dirname, 'matweb/oas/components.yml')) as file:
|
||||||
|
@ -8,5 +8,5 @@ Flask-Cors==3.0.10
|
|||||||
Cerberus==1.3.4
|
Cerberus==1.3.4
|
||||||
Flask-Testing==0.8.1
|
Flask-Testing==0.8.1
|
||||||
blinker==1.6.2
|
blinker==1.6.2
|
||||||
flasgger==0.9.5
|
flasgger==0.9.7b2
|
||||||
Flask-Assets==2.0
|
Flask-Assets==2.0
|
||||||
|
@ -474,7 +474,6 @@ class Mat2APITestCase(unittest.TestCase):
|
|||||||
def test_valid_opena_api_spec(self):
|
def test_valid_opena_api_spec(self):
|
||||||
spec = self.app.get('apispec_1.json').get_json()
|
spec = self.app.get('apispec_1.json').get_json()
|
||||||
# Test workaround due to https://github.com/flasgger/flasgger/issues/374
|
# Test workaround due to https://github.com/flasgger/flasgger/issues/374
|
||||||
del spec['definitions']
|
|
||||||
validate_spec(spec)
|
validate_spec(spec)
|
||||||
|
|
||||||
def test_remove_metadata(self):
|
def test_remove_metadata(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user