Skip to content

Add regression tests for token authorship output#3

Open
xenacode-art wants to merge 1 commit into
wikimedia:masterfrom
xenacode-art:add-regression-tests
Open

Add regression tests for token authorship output#3
xenacode-art wants to merge 1 commit into
wikimedia:masterfrom
xenacode-art:add-regression-tests

Conversation

@xenacode-art
Copy link
Copy Markdown

Adds tests/ with pytest regression fixtures for two articles (Adam Himebauch, Splatoon 3). Golden files were captured from the current master output.
Running pytest tests/ on this branch passes. On the optimization branch (#2), the tests detect the documented behavioral differences (Adam Himebauch: 8572→8500 tokens, Splatoon 3: 37819→37864).
To regenerate golden files after algorithm changes: python -m tests.generate_fixtures Then commit the updated tests/fixtures/*_golden.json files.
Related: #2

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