pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/PlasmaPy/PlasmaPy/pull/2913

3e4560.css" /> Enable `pytest-doctestplus` and update minimum versions in the `tests` dependency set by namurphy · Pull Request #2913 · PlasmaPy/PlasmaPy · GitHub
Skip to content

Enable pytest-doctestplus and update minimum versions in the tests dependency set#2913

Open
namurphy wants to merge 7 commits intoPlasmaPy:mainfrom
namurphy:pytest-doctestplus
Open

Enable pytest-doctestplus and update minimum versions in the tests dependency set#2913
namurphy wants to merge 7 commits intoPlasmaPy:mainfrom
namurphy:pytest-doctestplus

Conversation

@namurphy
Copy link
Member

@namurphy namurphy commented Nov 21, 2024

This PR enables pytest-doctestplus as a pytest extension. See #2912 for the motivation. Closes #2912.

Doctests are only run on the most recent version of Python (currently 3.13).

I'm starting this now so I don't forget, but I'll come back to this probably in December after a forthcoming proposal deadline.

@github-actions github-actions bot added requirements Related to updating requirements packaging Related to packaging or distribution labels Nov 21, 2024
@codecov
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.49%. Comparing base (0b8f11c) to head (bda7748).
⚠️ Report is 457 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2913      +/-   ##
==========================================
- Coverage   95.28%   94.49%   -0.79%     
==========================================
  Files         108      108              
  Lines        9632     9632              
  Branches     1451     1451              
==========================================
- Hits         9178     9102      -76     
- Misses        273      343      +70     
- Partials      181      187       +6     

☔ 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.

@namurphy namurphy requested a review from a team as a code owner November 21, 2024 17:55
@namurphy namurphy requested review from ejohnson-96 and removed request for a team November 21, 2024 17:55
@github-actions github-actions bot added the maintenance General updates to package infrastructure label Nov 21, 2024
@github-actions github-actions bot added testing CI Related to continuous integration python Pull requests that update Python code nox Related to the nox automation software labels Nov 21, 2024
@namurphy namurphy removed the request for review from ejohnson-96 November 21, 2024 18:00
@namurphy
Copy link
Member Author

I'm currently getting a bunch of test collection errors like below. It may take a bit to track down why. Probably will need to wait until after I'm done proposal writing!

________________________ ERROR collecting CHANGELOG.rst ________________________
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:355: in collect
    optionflags = get_optionflags(self) | FIX
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:192: in get_optionflags
    flag_int |= doctest.OPTIONFLAGS_BY_NAME[flag_str]
E   KeyError: 'NUMBER'
_________________________ ERROR collecting conftest.py _________________________
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:285: in collect
    options = get_optionflags(self) | FIX
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:192: in get_optionflags
    flag_int |= doctest.OPTIONFLAGS_BY_NAME[flag_str]
E   KeyError: 'NUMBER'

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

Labels

CI Related to continuous integration maintenance General updates to package infrastructure nox Related to the nox automation software packaging Related to packaging or distribution python Pull requests that update Python code requirements Related to updating requirements testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement pytest-doctestplus as a testing extension

1 participant

Comments

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy