release: v3.2.0 #134
Annotations
12 errors and 20 warnings
Python / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_resources.py#L101
test_create_banner
assert 400 == 201
+ where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
|
Python / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_resources.py#L117
test_disable_expired_after_create_action
assert 400 == 201
+ where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
|
Python / Tests (3.9, postgresql14, opensearch2):
tests/services/test_services.py#L67
test_banner_creation
marshmallow.exceptions.ValidationError: {'start_datetime': ['Missing data for required field.'], 'end_datetime': ['Not a valid datetime.']}
|
Python / Tests (3.9, postgresql14, opensearch2):
invenio_banners/resources/errors.py#L1
isort-check
"""Errors."""
-from flask_resources import HTTPJSONException, create_error_handler
-
-from ..services.errors import BannerNotExistsError
import marshmallow as ma
from flask_resources import HTTPJSONException, create_error_handler
from invenio_records_resources.errors import validation_error_to_list_errors
+
+from ..services.errors import BannerNotExistsError
class HTTPJSONValidationException(HTTPJSONException):
|
Python / Tests (3.9, postgresql14, opensearch2):
invenio_banners/resources/errors.py#L1
Black format check
--- /home/runner/work/invenio-banners/invenio-banners/invenio_banners/resources/errors.py 2025-01-22 14:55:15.598337+00:00
+++ /home/runner/work/invenio-banners/invenio-banners/invenio_banners/resources/errors.py 2025-01-22 14:56:44.439086+00:00
@@ -23,11 +23,11 @@
def __init__(self, exception):
"""Constructor."""
super().__init__(code=400, errors=validation_error_to_list_errors(exception))
-class ErrorHandlersMixin():
+class ErrorHandlersMixin:
"""Mixin to define error handlers."""
error_handlers = {
BannerNotExistsError: create_error_handler(
lambda e: HTTPJSONException(
|
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/resources/test_resources.py#L101
test_create_banner
assert 400 == 201
+ where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/resources/test_resources.py#L117
test_disable_expired_after_create_action
assert 400 == 201
+ where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/services/test_services.py#L67
test_banner_creation
marshmallow.exceptions.ValidationError: {'start_datetime': ['Missing data for required field.'], 'end_datetime': ['Not a valid datetime.']}
|
Python / Tests (3.12, postgresql14, opensearch2):
invenio_banners/resources/errors.py#L1
Black format check
--- /home/runner/work/invenio-banners/invenio-banners/invenio_banners/resources/errors.py 2025-01-22 14:55:14.306869+00:00
+++ /home/runner/work/invenio-banners/invenio-banners/invenio_banners/resources/errors.py 2025-01-22 14:56:59.556218+00:00
@@ -23,11 +23,11 @@
def __init__(self, exception):
"""Constructor."""
super().__init__(code=400, errors=validation_error_to_list_errors(exception))
-class ErrorHandlersMixin():
+class ErrorHandlersMixin:
"""Mixin to define error handlers."""
error_handlers = {
BannerNotExistsError: create_error_handler(
lambda e: HTTPJSONException(
|
Python / Tests (3.12, postgresql14, opensearch2):
invenio_banners/resources/errors.py#L1
isort-check
"""Errors."""
-from flask_resources import HTTPJSONException, create_error_handler
-
-from ..services.errors import BannerNotExistsError
import marshmallow as ma
from flask_resources import HTTPJSONException, create_error_handler
from invenio_records_resources.errors import validation_error_to_list_errors
+
+from ..services.errors import BannerNotExistsError
class HTTPJSONValidationException(HTTPJSONException):
|
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py#L14
'_app_ctx_stack' is deprecated and will be removed in Flask 2.3.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py#L14
'_app_ctx_stack' is deprecated and will be removed in Flask 2.3.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L670
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L672
Attribute s is deprecated and will be removed in Python 3.14; use value instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L670
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L672
Attribute s is deprecated and will be removed in Python 3.14; use value instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/passlib/utils/__init__.py#L854
'crypt' is deprecated and slated for removal in Python 3.13
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/flask_sqlalchemy/__init__.py#L14
'_app_ctx_stack' is deprecated and will be removed in Flask 2.3.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/flask_sqlalchemy/__init__.py#L14
'_app_ctx_stack' is deprecated and will be removed in Flask 2.3.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L670
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|