Merged
Conversation
The problem in LMFDB#2332 went unnoticed because of a lack of testing. This commit adds tests for the base citations page and the "How to Cite" the lmfdb page. These tests really just check that these pages exist. It also tests a specific reference in the citation list and tests for its bib entry in the associated bibliography list. This would catch the problem from LMFDB#2332. Note that I've also submitted a pull request to the LMFDB/citations repository to prevent this issue from coming up. This is LMFDB/citations#9
Codecov Report
@@ Coverage Diff @@
## master #2334 +/- ##
==========================================
+ Coverage 57.68% 57.76% +0.08%
==========================================
Files 225 226 +1
Lines 29598 29615 +17
Branches 4573 4573
==========================================
+ Hits 17073 17107 +34
+ Misses 11296 11280 -16
+ Partials 1229 1228 -1
Continue to review full report at Codecov.
|
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The problem in #2332 went unnoticed because of a lack of testing. This
commit adds tests for the base citations page and the "How to Cite" the
lmfdb page. These tests really just check that these pages exist. It
also tests a specific reference in the citation list and tests for its
bib entry in the associated bibliography list. This would catch the
problem from #2332.
Note that I've also submitted a pull request to the LMFDB/citations
repository to prevent this issue from coming up. This is
LMFDB/citations#9