Issue with xblock-lti-consumer==2.7.4
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 70
- Forks
- 104
- Avg merge
- 17h 46m
- Merged PRs (30d)
- 14
Description
Cannot unpack non-iterable Mock() object
Issue happens with this xblock https://github.com/edx/xblock-lti-consumer
version 2.7.4. For older version 1.2.1 everything works correctly.
Problem in this line:
as it is expects UsageKey

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with workbench/runtime.py at line 300 and reproduce the "Cannot unpack non-iterable Mock() object" failure using xblock-lti-consumer 2.7.4. Compare the behavior with version 1.2.1 and inspect how the UsageKey is expected to be handled. Done means the failing integration works with 2.7.4 without regressing the older version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100