Skip to content

test: pin HELP_TOKENS_VERSION in instructor-dashboard SUPPORT_URL tests#38489

Closed
brian-smith-tcril wants to merge 1 commit intoopenedx:masterfrom
brian-smith-tcril:fix-instructor-help-token-test-version
Closed

test: pin HELP_TOKENS_VERSION in instructor-dashboard SUPPORT_URL tests#38489
brian-smith-tcril wants to merge 1 commit intoopenedx:masterfrom
brian-smith-tcril:fix-instructor-help-token-test-version

Conversation

@brian-smith-tcril
Copy link
Copy Markdown
Contributor

@brian-smith-tcril brian-smith-tcril commented Apr 30, 2026

Summary

The instructor-dashboard SUPPORT_URL tests added in #38446 assert the full help-tokens URL, which includes the doc version. HELP_TOKENS_VERSION derives from doc_version()

HELP_TOKENS_VERSION = Derived(lambda settings: doc_version())

which returns "latest" on master but "open-release-<name>.master" on release branches — so the tests fail on release branches (e.g., #38487 against verawood.master).

This pins HELP_TOKENS_VERSION to "latest" in the affected tests so the URL is deterministic regardless of which branch the tests run on. The rest of the help-tokens integration (singleton, INI file, HELP_TOKENS_BOOKS lookup) is still exercised end-to-end.

Test plan

  • Existing tests pass (lms/djangoapps/mfe_config_api/tests/test_views.py)
  • Tests pass when cherry-picked to a release branch where doc_version() returns a non-latest value

🤖 Generated with Claude Code

The asserted help-tokens URL includes the doc version, which varies
between master ("latest") and release branches ("open-release-<name>.master"),
causing the tests to fail on release branches. Pin HELP_TOKENS_VERSION
to "latest" so the tests are deterministic regardless of which branch
they run on.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brian-smith-tcril brian-smith-tcril force-pushed the fix-instructor-help-token-test-version branch from 1b7c536 to 361025e Compare April 30, 2026 17:55
@brian-smith-tcril brian-smith-tcril changed the title test: pin HELP_TOKENS_VERSION in instructor-dashboard SUPPORT_URL tests test: pin HELP_TOKENS_VERSION in instructor-dashboard SUPPORT_URL tests Apr 30, 2026
@brian-smith-tcril
Copy link
Copy Markdown
Contributor Author

#38497 landed before this with a similar fix. Closing this.

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