Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PC-32546)[API] feat: catch timeout on cinema providers #14947

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

(PC-32546)[API] feat: catch timeout on cinema providers

2f6d929
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

(PC-32546)[API] feat: catch timeout on cinema providers #14947

(PC-32546)[API] feat: catch timeout on cinema providers
2f6d929
Select commit
Loading
Failed to load commit list.
GitHub Actions / Pytest Report failed Nov 6, 2024 in 0s

2136 tests run, 2122 passed, 4 skipped, 10 failed.

Annotations

Check failure on line 111 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_should_raise_because_no_ticketing_system_set

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:122: in test_should_raise_because_no_ticketing_system_set
    book_event_ticket(booking, stock, user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 123 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_should_successfully_book_an_event_ticket

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:182: in test_should_successfully_book_an_event_ticket
    tickets, remaining_quantity = book_event_ticket(booking, stock, user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 193 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_should_successfully_book_an_event_ticket_with_null_remaining_quantity

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:208: in test_should_successfully_book_an_event_ticket_with_null_remaining_quantity
    tickets, remaining_quantity = book_event_ticket(booking, booking.stock, booking.user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 212 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_should_raise_an_error_because_remaining_quantity_is_missing

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:227: in test_should_raise_an_error_because_remaining_quantity_is_missing
    book_event_ticket(booking, booking.stock, booking.user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 228 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_should_raise_an_error_because_response_cant_be_parsed

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:244: in test_should_raise_an_error_because_response_cant_be_parsed
    book_event_ticket(booking, booking.stock, booking.user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 245 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_should_successfully_book_an_event_ticket_using_venue_external_url

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:317: in test_should_successfully_book_an_event_ticket_using_venue_external_url
    book_event_ticket(booking, stock, user, provider, venue_provider)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 326 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_raise_because_the_event_is_sold_out

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:347: in test_raise_because_the_event_is_sold_out
    book_event_ticket(booking, stock, user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 348 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_raise_because_there_are_no_more_seats

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:369: in test_raise_because_there_are_no_more_seats
    book_event_ticket(booking, stock, user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 370 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_raise_because_there_is_an_unexpected_error

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:390: in test_raise_because_there_is_an_unexpected_error
    book_event_ticket(booking, stock, user, provider, None)
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`

Check failure on line 393 in tests/core/external_bookings/test_api.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/external_bookings/test_api.py.test_uses_offer_address_when_available

pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`
Raw output
tests/core/external_bookings/test_api.py:443: in test_uses_offer_address_when_available
    book_event_ticket(
src/pcapi/core/external_bookings/decorators.py:67: in wrapped_func
    raise ExternalBookingDecoratorException(
E   pcapi.core.external_bookings.decorators.ExternalBookingDecoratorException: `catch_request_timeout` can only be applied to an instance method of a class inheriting from `ExternalBookingsClientAPI`