GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Unit tests (as in, tests for unit folders) by rtibbles · Pull Request #5646 · learningequality/studio

Conversation

@rtibbles

@rtibbles rtibbles commented Jan 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.
Adds a requirement that if a folder is a UNIT, it must have valid pre-post-test completion criteria to be considered complete.

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

Can also be tested more fully with this ricecooker draft PR: learningequality/ricecooker#653

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rtibbles added 2 commits January 15, 2026 07:25
@rtibbles
Upgrade le-utils to version 0.2.14
f174386
@rtibbles
Add test for and update publish logic to publish pre/post tests for U…
5890cf8
…NIT modality topics.
@rtibbles rtibbles changed the title Unit tests Unit tests (as in, tests for unit folders) Jan 16, 2026
@bjester bjester self-assigned this Jan 19, 2026
bjester
bjester requested changes Jan 19, 2026
View reviewed changes

@bjester bjester left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me ContentNode.mark_complete should be updated. While the validation function was updated here, that method side steps it for topics, meaning a node with Unit modality can be marked complete without necessary mastery criteria. Unless updating that would be problematic?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rtibbles added 3 commits January 19, 2026 16:47
@rtibbles
Make topic completion criterion validation more rigorous.
0ad254f
@rtibbles
Run completion criterion checking on all node types.
2d7d22c
@rtibbles
Add strong requirement for UNIT folders to require preposttest comple…
2d234d4
…tion criteria.
bjester
bjester approved these changes Jan 20, 2026
View reviewed changes

@bjester bjester left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When publishing the channel from your ricecooker example, I noticed a bunch of error messages about Unable to sort answers, leaving unsorted, although I don't see where that's coming from. Publishing didn't fail though, so I presume it's not an issue.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@marcellamaki
marcellamaki merged commit 8b9be86 into learningequality:hotfixes Jan 20, 2026
15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rtibbles
rtibbles deleted the unit_tests branch February 4, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bjester bjester bjester approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@bjester bjester

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@rtibbles @bjester @marcellamaki
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.