updated flask and flasgger

This commit is contained in:
jf 2023-06-04 16:44:53 +02:00
parent 42de0752a1
commit ee0727bfb3
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,8 @@ def create_app(test_config=None):
# Restful API hookup
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__)
with open(os.path.join(dirname, 'matweb/oas/components.yml')) as file:

View File

@ -8,5 +8,5 @@ Flask-Cors==3.0.10
Cerberus==1.3.4
Flask-Testing==0.8.1
blinker==1.6.2
flasgger==0.9.5
flasgger==0.9.7b2
Flask-Assets==2.0

View File

@ -474,7 +474,6 @@ class Mat2APITestCase(unittest.TestCase):
def test_valid_opena_api_spec(self):
spec = self.app.get('apispec_1.json').get_json()
# Test workaround due to https://github.com/flasgger/flasgger/issues/374
del spec['definitions']
validate_spec(spec)
def test_remove_metadata(self):