Skip to content

django52: Updated tuple unpacking of signal receivers #37251

@awais786

Description

@awais786

Django42 changeset
vs
Django52 changeset

Tests failing

openedx/core/djangoapps/content/course_overviews/management/commands/tests/test_simulate_publish.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
openedx/core/djangoapps/content/course_overviews/management/commands/simulate_publish.py:204: in handle
    self.modify_receivers(options['receivers'], options['skip_ccx'])
openedx/core/djangoapps/content/course_overviews/management/commands/simulate_publish.py:235: in modify_receivers
    all_receiver_names = get_receiver_names()
openedx/core/djangoapps/content/course_overviews/management/commands/simulate_publish.py:314: in get_receiver_names
    return {
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

.0 = <list_iterator object at 0xffff53029a50>

    return {
        name_from_fn(fn_ref())
>       for _, fn_ref in Command.course_published_signal.receivers
    }
E   ValueError: too many values to unpack (expected 2)

openedx/core/djangoapps/content/course_overviews/management/commands/simulate_publish.py:316: ValueError
________________________________________________________________________ TestSimulatePublish.test_specific_co

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions