Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doctests to the descriptor HowTo #23500

Merged
merged 32 commits into from
Nov 25, 2020
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7111d70
Test: Simple example
rhettinger Nov 24, 2020
46e08b6
Test the rest of the primer section
rhettinger Nov 24, 2020
04fda83
Doctest for the Validator example
rhettinger Nov 24, 2020
1016492
Fix typo
rhettinger Nov 24, 2020
c1201a4
Attempt to make logging doctestable
rhettinger Nov 24, 2020
81fd22c
Test the ORM example
rhettinger Nov 24, 2020
c07d729
Mock logging.info()
rhettinger Nov 24, 2020
58666fa
Test the remainder of the document
rhettinger Nov 24, 2020
146961e
Fix markup
rhettinger Nov 24, 2020
719e7df
Give-up on doctests for the logging examples
rhettinger Nov 24, 2020
722c551
Fix markup
rhettinger Nov 24, 2020
076f7d6
Disable another non-doctestable block
rhettinger Nov 24, 2020
d0dcd5c
More extensive tests for the Member() example.
rhettinger Nov 24, 2020
37ae728
Fix markup
rhettinger Nov 24, 2020
4a851ed
Doctest the classmethod section
rhettinger Nov 24, 2020
d2cc6b4
Verify the ClassMethod() emulation
rhettinger Nov 24, 2020
8c09ccc
Add more tests for the Property() emulation
rhettinger Nov 24, 2020
a26495d
See if the clean-up directive can run assertions
rhettinger Nov 24, 2020
961511c
Move cleanup sections to hidden testcode
rhettinger Nov 25, 2020
53bd1d1
Fix key ordering in the fromkeys() example.
rhettinger Nov 25, 2020
979e10f
Separate the Vehicle testcode from its doctest
rhettinger Nov 25, 2020
3a7fe08
Separate CP testcode from its doctest
rhettinger Nov 25, 2020
bc5c2a6
Fix spacing
rhettinger Nov 25, 2020
fff2ef0
Remove contraction
rhettinger Nov 25, 2020
0c819d0
Fix markup
rhettinger Nov 25, 2020
c66d2e0
Nicer code alignment
rhettinger Nov 25, 2020
5eaddc3
Fix alignment of the :hide: option
rhettinger Nov 25, 2020
5cdfbdc
Test object_getattribute()
rhettinger Nov 25, 2020
2d8cd3b
Add tests for object_getattribute()
rhettinger Nov 25, 2020
a623c65
Convert assertion tests to regular doctests
rhettinger Nov 25, 2020
2640234
Improve the example for classmethod with a property()
rhettinger Nov 25, 2020
b218c3d
Add a blank line
rhettinger Nov 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading