remove flask upper pin #71
Triggered via pull request
September 26, 2024 20:05
Status
Failure
Total duration
2m 13s
Artifacts
–
Annotations
16 errors
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/resources/test_resources.py#L263
test_search_banner
assert 0 == 2
|
Python / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_resources.py#L308
test_search_banner_with_params
assert 0 == 3
|
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 2024-09-26 20:05:34.185327+00:00
+++ /home/runner/work/invenio-banners/invenio-banners/invenio_banners/resources/errors.py 2024-09-26 20:07:29.911586+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/resources/test_resources.py#L263
test_search_banner
assert 0 == 2
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/resources/test_resources.py#L308
test_search_banner_with_params
assert 0 == 3
|
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
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):
invenio_banners/resources/errors.py#L1
Black format check
--- /home/runner/work/invenio-banners/invenio-banners/invenio_banners/resources/errors.py 2024-09-26 20:05:34.300899+00:00
+++ /home/runner/work/invenio-banners/invenio-banners/invenio_banners/resources/errors.py 2024-09-26 20:07:32.018539+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)
Process completed with exit code 1.
|