]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
requirements: Bump psycopg2-binary, openapi-core
authorStephen Finucane <stephen@that.guru>
Wed, 29 Sep 2021 14:58:01 +0000 (15:58 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 30 Sep 2021 10:54:52 +0000 (11:54 +0100)
Once again, openapi-core has moved stuff around internally. Nothing we
can't fix though, as it seems the thing moved is no longer necessary.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/api/validator.py
requirements-test.txt

index 2b1921a35887b983dede39971bee6554d3567317..969122278fabb01246e35b27913c5584506edacb 100644 (file)
@@ -10,8 +10,7 @@ from django.urls import resolve
 import openapi_core
 from openapi_core.contrib.django import DjangoOpenAPIRequestFactory
 from openapi_core.contrib.django import DjangoOpenAPIResponseFactory
-from openapi_core.schema.media_types.exceptions import OpenAPIMediaTypeError
-from openapi_core.schema.parameters.exceptions import OpenAPIParameterError
+from openapi_core.exceptions import OpenAPIParameterError
 from openapi_core.templating import util
 from openapi_core.unmarshalling.schemas.formatters import Formatter
 from openapi_core.validation.request.validators import RequestValidator
@@ -113,9 +112,6 @@ def validate_data(path, request, response, validate_request,
         result = validator.validate(request)
         try:
             result.raise_for_errors()
-        except OpenAPIMediaTypeError:
-            if response.status_code != status.HTTP_400_BAD_REQUEST:
-                raise
         except OpenAPIParameterError:
             # TODO(stephenfin): In API v2.0, this should be an error. As things
             # stand, we silently ignore these issues.
index c8ce258b6517d4c8e4dcb3c7ffdf438ed6a7e358..7f03b0fc8b1278a8b34d97aac83e00ec39f04931 100644 (file)
@@ -1,6 +1,6 @@
 mysqlclient~=2.0.0
-psycopg2-binary~=2.8.0
+psycopg2-binary~=2.9.0
 sqlparse~=0.4.0
 python-dateutil~=2.8.0
 tblib~=1.7.0
-openapi-core~=0.13.4
+openapi-core~=0.14.2