Mock test CLI and complete docstrings
See original GitHub issueDescription of issue or feature request:
The CLI and supporting were reviewed in #741, but repo.py
still needs mock tests and docstrings.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
doctest — Test interactive Python examples
To check that a module's docstrings are up-to-date by verifying that all interactive examples still work as documented. To perform regression testing by ......
Read more >Python's doctest: Document and Test Your Code at Once
In this tutorial, you'll learn how to add usage examples to your code's documentation and docstrings and how to use these examples to...
Read more >How to run doctests
By default, all files matching the test*.txt pattern will be run through the python ... --doctest-glob can be given multiple times in the...
Read more >Using docstrings for testing | Modern Python Cookbook
Good Python includes docstrings inside every module, class, function, ... sample. Access the full title and Packt library for free now with a...
Read more >doctest – Testing through documentation
doctest lets you test your code by running examples embedded in the documentation and verifying that they produce the expected results.
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 FreeTop 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
Top GitHub Comments
#796 merged. Thanks, @michizhou!
repo.py still needs docstrings for a number of its functions before I can close this.
@awwad I would like to get started with the documentation part of it. Once that is taken care of, I would be glad to help add additional testing for the CLI scripts and possibly look into the use of doctest. Let me know if that works for you. Thanks!