Get doctests in shape to be tested by tox
See original GitHub issue
Top Results From Across the Web
doctest — Test interactive Python examples — Python 3.11.1 ...
Source code: Lib/doctest.py The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sessions to ......
Read more >How to let pytest discover and run doctests in installed modules?
I found the answer to my own question. To quote pytest issue #2042: currently doctest-modules is fundamentally incompatible with testing ...
Read more >How to run doctests — pytest documentation
By default, all files matching the test*.txt pattern will be run through the python standard doctest module. You can change the pattern by...
Read more >How I'm testing in 2020 - James Bennett
So whenever I start a new project and get its tests in good shape, I turn on the coverage report for every test...
Read more >Testing - Hugging Face
Once a PR is submitted it gets tested with 9 CircleCi jobs. ... the documentation examples are correct, you should check that the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@daspecster As seen above (I edited after original posting),
doctest.run_docstring_examplesdoesn’t actually fail in the case of an error, so using the unit test runner allows us to see failures as exceptions / nonzero exit codes.Please file an issue saying “I’m working on storage snippets”.
In
storage_snippets.pyyou would do the following: