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

Remove executable code from test_profile #417

Merged

Conversation

mwcraig
Copy link
Contributor

@mwcraig mwcraig commented Aug 9, 2024

This closes #414 by removing the only executable code in test_profiles that was outside a function. Since the bit of code was used in another test in gui_tools, I made the table a pytest fixture in conftest.py.

mwcraig added 2 commits August 9, 2024 11:54
Two goals here: making the table a fixture, and making it possible to
share without a bunch of imports from test code.
@mwcraig mwcraig added this to the 2.0.0-beta milestone Aug 9, 2024
@mwcraig mwcraig requested a review from JuanCab August 9, 2024 17:27
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.87%. Comparing base (b402dc6) to head (f297b73).
Report is 161 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #417   +/-   ##
=======================================
  Coverage   78.87%   78.87%           
=======================================
  Files          29       29           
  Lines        3815     3815           
=======================================
  Hits         3009     3009           
  Misses        806      806           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@JuanCab JuanCab 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 to me. I just started investigating pytest fixtures a few weeks ago, they really are convenient.

@mwcraig mwcraig merged commit 0a08565 into feder-observatory:main Aug 9, 2024
17 checks passed
@mwcraig mwcraig deleted the remove-executable-test_profile branch August 9, 2024 18:08
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.

Remove top-level executable code in test_profiles
2 participants