Skip to content

MAINT: remove the usage of TestRunner therefore remove astroquery.test()#3215

Merged
bsipocz merged 3 commits into
astropy:mainfrom
bsipocz:MAINT_remove_testrunner
Feb 27, 2025
Merged

MAINT: remove the usage of TestRunner therefore remove astroquery.test()#3215
bsipocz merged 3 commits into
astropy:mainfrom
bsipocz:MAINT_remove_testrunner

Conversation

@bsipocz

@bsipocz bsipocz commented Feb 20, 2025

Copy link
Copy Markdown
Member

We didn't advertise it in the docs (e.g. https://astroquery.readthedocs.io/en/latest/testing.html), the API docs was not exposed either, so I do this without a deprecation but if there is a veto I'm happy to go via deprecation instead.

CC-ing some of the most frequent contributors to give their thumbs up

cc @keflavich @ManonMarchand @andamian @jespinosaar @snbianco

@bsipocz bsipocz added this to the v0.4.10 milestone Feb 20, 2025
@codecov

codecov Bot commented Feb 20, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.26%. Comparing base (29ba772) to head (518e5ea).
Report is 321 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3215      +/-   ##
==========================================
- Coverage   68.31%   68.26%   -0.06%     
==========================================
  Files         231      230       -1     
  Lines       19199    19164      -35     
==========================================
- Hits        13116    13082      -34     
+ Misses       6083     6082       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread astroquery/conftest.py
# add '_testrun' to the version name so that the user-agent indicates that
# it's being run in a test
from . import version
version.version += '_testrun'

@ManonMarchand ManonMarchand Feb 26, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually, I think this was really useful for the usage statistics. Could it be kept/reproduced?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This should all be the case, this PR just removed the duplicated conftest file, but the remaining one on the top level should still contain all the useful bits and pieces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants