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

DM-36984: Fix astropy table test code #754

Merged
merged 2 commits into from Nov 14, 2022
Merged

DM-36984: Fix astropy table test code #754

merged 2 commits into from Nov 14, 2022

Conversation

timj
Copy link
Member

@timj timj commented Nov 14, 2022

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@timj timj requested a review from erykoff November 14, 2022 20:44
@codecov
Copy link

codecov bot commented Nov 14, 2022

Codecov Report

Base: 85.30% // Head: 85.30% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (5d81ee1) compared to base (08d9810).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 5d81ee1 differs from pull request most recent head bea5bbf. Consider uploading reports for the commit bea5bbf to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #754   +/-   ##
=======================================
  Coverage   85.30%   85.30%           
=======================================
  Files         260      260           
  Lines       34382    34385    +3     
  Branches     5806     5806           
=======================================
+ Hits        29330    29333    +3     
  Misses       3815     3815           
  Partials     1237     1237           
Impacted Files Coverage Δ
tests/test_cliCmdQueryDimensionRecords.py 96.82% <ø> (ø)
python/lsst/daf/butler/tests/utils.py 94.25% <100.00%> (+0.20%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

Looks good, with the small caveat to add to the code comments.

python/lsst/daf/butler/tests/utils.py Show resolved Hide resolved
Rather than using the textual diff (which elides columns depending
on terminal width unless overridden) ask astropy to format all the lines
of the table into tuples and then compare the tuples.
We did not notice they were missing because the table
comparison code was stringifying the tables and inside
pytest this meant that a few columns were elided because
of the default pytest terminal width setting.
@timj timj merged commit 0e87300 into main Nov 14, 2022
@timj timj deleted the tickets/DM-36984 branch November 14, 2022 22:30
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.

None yet

2 participants