Skip to content

Conversation

@rtibbles
Copy link
Member

@rtibbles rtibbles commented Jan 16, 2026

Summary

Adds a test to make sure that units have their assessment items published as a Perseus zip (not QTI, as for now that only happens for Surveys) but skips assessment metadata
Updates publishing logic with helper function has_assessments to handle the two cases consistently in all places we check.
Fixes issue that arose when adding more test data to the export channel test setup - previously the Bad Mastery exercise node did not appear in the complete nodes for some reason, but now it does. Explicitly skips it.
Updates le-utils for updated JSONSchema for mastery criteria.

Note: This relies on ricecooker code pushing the correct assessment_item_ids at time of push, rather than dynamically generating them.

References

In support of learningequality/kolibri-ecosystem#38

Reviewer guidance

Are there any places where exercise handling has been updated that it shouldn't? Are there any places where exercise handling hasn't been updated but it should?

I have tested this locally, uploading an example course channel to my development server and ensuring the published channel db look as I would expect, with the correct options data on the UNITs, and appropriate file objects in the DB.

Attached here: a0271e8992f856a99a2d1b8ecfde9c5a.zip

@rtibbles rtibbles changed the title Unit tests Unit tests (as in, tests for unit folders) Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant