assert_matches_corpus#
- scikitplot.mcp.assert_matches_corpus()[source]#
Verify this module’s vocabulary still matches Corpus’s.
- Raises:
- RuntimeError
If
scikitplot.corpusis not installed.- AssertionError
If Corpus’s
RetrievalStatushas gained or renamed a member relative to the constants defined here.
- Return type:
None
Notes
Developer-focused. This is the drift gate for the one piece of duplicated vocabulary in the MCP tier. It is called by the test suite whenever
scikitplot.corpusis importable, so the strings above cannot silently diverge from the enum they mirror.