Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve testing for copyright year substitution #12950

Merged
merged 4 commits into from
Oct 3, 2024

Conversation

AA-Turner
Copy link
Member

Comment on lines +160 to +161
def test_correct_year_app(expect_date, tmp_path, make_app):
# integration test
Copy link
Member Author

Choose a reason for hiding this comment

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

Of interest, pycharm reports that this single test takes ~471ms. All 45 tests in the file take 473ms -- goes to show that we should prefer unit tests when possible!

@AA-Turner AA-Turner merged commit 5f3846f into sphinx-doc:master Oct 3, 2024
23 checks passed
@AA-Turner AA-Turner deleted the config/test-copyright branch October 3, 2024 20:56
@jayaddison
Copy link
Contributor

Thanks @AA-Turner - this coverage looks good and makes sense to me (particularly the coverage for replacement of future-years and non-system-clock years, helpful to make the changes in #12516 comprehensible) 👍

@AA-Turner AA-Turner added this to the 8.1.x milestone Oct 6, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants