Add the two missing asserts in test_columnaliases - #780
Merged
Conversation
The two statements were evaluated and discarded, so the test did not check what its name says. The behaviour is already correct, this is about the test guarding it. Verified both ways: the asserts pass as written, and flipping one to 'is not None' makes the test fail, so they are now comparing something.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #780 +/- ##
=======================================
Coverage 80.52% 80.52%
=======================================
Files 90 90
Lines 10352 10352
=======================================
Hits 8336 8336
Misses 2016 2016 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ManonMarchand
approved these changes
Aug 5, 2026
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.
Split out of #778 as you suggested.
dal/tests/test_query.py:586has two statements withassertmissing:Both are evaluated and thrown away, so
test_columnaliasesdoes not check the last two of the four aliases it is named for.The behaviour is already correct, so nothing changes for users. This is only about the test guarding what it claims.
Checks
And the other direction, to show the asserts are really comparing something: flipping the first one to
is not Nonegives1 failed, 1 passedwithAssertionErrorat line 586.