Skip to content

(PC-31644)[PRO] Implémentation du status CANCELLED #4824

(PC-31644)[PRO] Implémentation du status CANCELLED

(PC-31644)[PRO] Implémentation du status CANCELLED #4824

GitHub Actions / Pytest Report failed Sep 20, 2024 in 0s

2042 tests run, 2012 passed, 4 skipped, 26 failed.

Annotations

Check failure on line 609 in tests/core/educational/test_models.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_models.py.test_get_offer_displayed_status[CollectiveOfferDisplayedStatus.CANCELLED]

AssertionError: assert <CollectiveOfferDisplayedStatus.EXPIRED: 'EXPIRED'> == <CollectiveOfferDisplayedStatus.CANCELLED: 'CANCELLED'>
 +  where <CollectiveOfferDisplayedStatus.EXPIRED: 'EXPIRED'> = <CollectiveOffer #109>.displayedStatus
Raw output
tests/core/educational/test_models.py:614: in test_get_offer_displayed_status
    assert offer.displayedStatus == status
E   AssertionError: assert <CollectiveOfferDisplayedStatus.EXPIRED: 'EXPIRED'> == <CollectiveOfferDisplayedStatus.CANCELLED: 'CANCELLED'>
E    +  where <CollectiveOfferDisplayedStatus.EXPIRED: 'EXPIRED'> = <CollectiveOffer #109>.displayedStatus

Check failure on line 630 in tests/core/educational/test_models.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_models.py.test_get_offer_allowed_actions[CollectiveOfferDisplayedStatus.CANCELLED]

AssertionError: assert [<CollectiveOfferAllowedAction.CAN_EDIT_DATES: 'CAN_EDIT_DATES'>, <CollectiveOfferAllowedAction.CAN_ARCHIVE: 'CAN_ARCHIVE'>] == [<CollectiveOfferAllowedAction.CAN_DUPLICATE: 'CAN_DUPLICATE'>, <CollectiveOfferAllowedAction.CAN_ARCHIVE: 'CAN_ARCHIVE'>]
  
  At index 0 diff: <CollectiveOfferAllowedAction.CAN_EDIT_DATES: 'CAN_EDIT_DATES'> != <CollectiveOfferAllowedAction.CAN_DUPLICATE: 'CAN_DUPLICATE'>
  
  Full diff:
    [
  -     <CollectiveOfferAllowedAction.CAN_DUPLICATE: 'CAN_DUPLICATE'>,
  ?                                        --- ^           --- ^
  +     <CollectiveOfferAllowedAction.CAN_EDIT_DATES: 'CAN_EDIT_DATES'>,
  ?                                       +  ^^^   +       +  ^^^   +
        <CollectiveOfferAllowedAction.CAN_ARCHIVE: 'CAN_ARCHIVE'>,
    ]
Raw output
tests/core/educational/test_models.py:635: in test_get_offer_allowed_actions
    assert offer.allowed_actions == list(ALLOWED_ACTIONS_BY_DISPLAYED_STATUS[status])
E   AssertionError: assert [<CollectiveOfferAllowedAction.CAN_EDIT_DATES: 'CAN_EDIT_DATES'>, <CollectiveOfferAllowedAction.CAN_ARCHIVE: 'CAN_ARCHIVE'>] == [<CollectiveOfferAllowedAction.CAN_DUPLICATE: 'CAN_DUPLICATE'>, <CollectiveOfferAllowedAction.CAN_ARCHIVE: 'CAN_ARCHIVE'>]
E     
E     At index 0 diff: <CollectiveOfferAllowedAction.CAN_EDIT_DATES: 'CAN_EDIT_DATES'> != <CollectiveOfferAllowedAction.CAN_DUPLICATE: 'CAN_DUPLICATE'>
E     
E     Full diff:
E       [
E     -     <CollectiveOfferAllowedAction.CAN_DUPLICATE: 'CAN_DUPLICATE'>,
E     ?                                        --- ^           --- ^
E     +     <CollectiveOfferAllowedAction.CAN_EDIT_DATES: 'CAN_EDIT_DATES'>,
E     ?                                       +  ^^^   +       +  ^^^   +
E           <CollectiveOfferAllowedAction.CAN_ARCHIVE: 'CAN_ARCHIVE'>,
E       ]

Check failure on line 502 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_by_status[CollectiveOfferDisplayedStatus.CANCELLED]

assert 0 == 1
 +  where 0 = count()
 +    where count = <pcapi.models.pc_object.BaseQuery object at 0x7f8ccc70bd90>.count
Raw output
tests/core/educational/test_repository.py:516: in test_filter_by_status
    assert filtered_booked_query.count() == 1
E   assert 0 == 1
E    +  where 0 = count()
E    +    where count = <pcapi.models.pc_object.BaseQuery object at 0x7f8ccc70bd90>.count

Check failure on line 530 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_active[CollectiveOfferDisplayedStatus.CANCELLED]

assert 0 == 1
 +  where 0 = count()
 +    where count = <pcapi.models.pc_object.BaseQuery object at 0x7f8ccab1da90>.count
Raw output
tests/core/educational/test_repository.py:544: in test_filter_active
    assert filtered_out_query.count() == 1
E   assert 0 == 1
E    +  where 0 = count()
E    +    where count = <pcapi.models.pc_object.BaseQuery object at 0x7f8ccab1da90>.count

Check failure on line 546 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_all_filters

assert {256, 257, 246, 247, 248, 249, 250, 252, 253, 254, 255} == {256, 257, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255}
  
  Extra items in the right set:
  251
  
  Full diff:
    {
        246,
        247,
        248,
        249,
        250,
  -     251,
        252,
        253,
        254,
        255,
        256,
        257,
    }
Raw output
tests/core/educational/test_repository.py:558: in test_all_filters
    assert filtered_query_ids == {offer.id for offer in all_offers_by_status.values()}
E   assert {256, 257, 246, 247, 248, 249, 250, 252, 253, 254, 255} == {256, 257, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255}
E     
E     Extra items in the right set:
E     251
E     
E     Full diff:
E       {
E           246,
E           247,
E           248,
E           249,
E           250,
E     -     251,
E           252,
E           253,
E           254,
E           255,
E           256,
E           257,
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.ENDED]

AssertionError: assert {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.PREBOOKED]

AssertionError: assert {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.PENDING]

AssertionError: assert {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.REJECTED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.BOOKED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.EXPIRED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.ACTIVE]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.ARCHIVED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.INACTIVE]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 561 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one_without_new_statuses[CollectiveOfferDisplayedStatus.DRAFT]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:577: in test_filter_statuses_but_one_without_new_statuses
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.ENDED]

AssertionError: assert {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.PREBOOKED]

AssertionError: assert {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.PENDING]

AssertionError: assert {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.REJECTED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.BOOKED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.EXPIRED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.REIMBURSED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'ACTIVE', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.ACTIVE]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ARCHIVED', 'INACTIVE', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.ARCHIVED]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'INACTIVE',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'DRAFT', 'INACTIVE'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'INACTIVE',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }

Check failure on line 581 in tests/core/educational/test_repository.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Report

tests/core/educational/test_repository.py.test_filter_statuses_but_one[CollectiveOfferDisplayedStatus.INACTIVE]

AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'}
  
  Extra items in the right set:
  'CANCELLED'
  
  Full diff:
    {
        'ACTIVE',
        'ARCHIVED',
        'BOOKED',
  -     'CANCELLED',
        'DRAFT',
        'ENDED',
        'EXPIRED',
        'PENDING',
        'PREBOOKED',
        'REIMBURSED',
        'REJECTED',
    }
Raw output
tests/core/educational/test_repository.py:597: in test_filter_statuses_but_one
    assert filtered_query_status == {
E   AssertionError: assert {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'} == {'ENDED', 'PREBOOKED', 'PENDING', 'REJECTED', 'BOOKED', 'CANCELLED', 'EXPIRED', 'REIMBURSED', 'ACTIVE', 'ARCHIVED', 'DRAFT'}
E     
E     Extra items in the right set:
E     'CANCELLED'
E     
E     Full diff:
E       {
E           'ACTIVE',
E           'ARCHIVED',
E           'BOOKED',
E     -     'CANCELLED',
E           'DRAFT',
E           'ENDED',
E           'EXPIRED',
E           'PENDING',
E           'PREBOOKED',
E           'REIMBURSED',
E           'REJECTED',
E       }