Skip to content

pytest-doctest-docutils: Fix python files#7

Merged
tony merged 3 commits into
masterfrom
test-python-files
Sep 6, 2022
Merged

pytest-doctest-docutils: Fix python files#7
tony merged 3 commits into
masterfrom
test-python-files

Conversation

@tony

@tony tony commented Sep 6, 2022

Copy link
Copy Markdown
Member

To scan .py files, in lieu of pytest's own docutils being disabled in pytest_configure:

Adds --doctest-docutils-modules (scan doctests in .py files) and --no-doctest-docutils-modules (ignore doctest in .py files)

This should be temporary, ideally we'll find a way to work with pytest doctest without needing to block the plugin

@tony tony force-pushed the test-python-files branch from 17092b9 to 535050b Compare September 6, 2022 02:52
@codecov-commenter

codecov-commenter commented Sep 6, 2022

Copy link
Copy Markdown

Codecov Report

Merging #7 (338bb6f) into master (caf7cfe) will increase coverage by 0.92%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master       #7      +/-   ##
==========================================
+ Coverage   59.02%   59.94%   +0.92%     
==========================================
  Files           9       11       +2     
  Lines         615      724     +109     
==========================================
+ Hits          363      434      +71     
- Misses        252      290      +38     
Impacted Files Coverage Δ
src/pytest_doctest_docutils.py 40.77% <80.00%> (+3.54%) ⬆️
tests/test_pytest_doctest_docutils.py 100.00% <100.00%> (ø)
src/gp_libs.py 100.00% <0.00%> (ø)
docs/conf.py 59.09% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tony tony merged commit f02566f into master Sep 6, 2022
@tony tony deleted the test-python-files branch September 6, 2022 02:56
@tony tony linked an issue Sep 6, 2022 that may be closed by this pull request
tony added a commit that referenced this pull request Sep 6, 2022
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.

pytest-doctest-docutils: Breaks testing of .py files

2 participants