Skip to content

(PC-32571)[API] chore: filter product extra data to copy in offer #6118

(PC-32571)[API] chore: filter product extra data to copy in offer

(PC-32571)[API] chore: filter product extra data to copy in offer #6118

GitHub Actions / Pytest Report failed Oct 21, 2024 in 0s

1151 tests run, 1149 passed, 1 skipped, 1 failed.

Annotations

Check failure on line 120 in tests/core/bookings/test_api_race_condition.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/bookings/test_api_race_condition.py.test_stock_race_condition_between_booking_and_synchronization

AttributeError: 'NoneType' object has no attribute 'extraData'
Raw output
tests/core/bookings/test_api_race_condition.py:131: in test_stock_race_condition_between_booking_and_synchronization
    cds_stocks.updateObjects()
src/pcapi/local_providers/local_provider.py:240: in updateObjects
    pc_object = self._create_object(providable_info)
src/pcapi/local_providers/local_provider.py:119: in _create_object
    self.fill_object_attributes(pc_object)
src/pcapi/local_providers/cinema_providers/cds/cds_stocks.py:115: in fill_object_attributes
    self.fill_offer_attributes(pc_object)
src/pcapi/local_providers/cinema_providers/cds/cds_stocks.py:147: in fill_offer_attributes
    self.update_from_movie_information(offer)
src/pcapi/local_providers/cinema_providers/cds/cds_stocks.py:126: in update_from_movie_information
    offer.extraData = offers_api._filter_unwanted(offer.product.extraData)
E   AttributeError: 'NoneType' object has no attribute 'extraData'