-
Notifications
You must be signed in to change notification settings - Fork 42
doctest
albert12132 edited this page Feb 5, 2015
·
1 revision
OK supports doctests as a source. See the Python documentation for more details.
There are two ways specify doctests as a source. Both ways are denoted in the configuration file:
-
All doctests in file(s). For example:
"hw1.py": "doctest"
This specifies all doctests within
hw1.py
. -
Specific doctests in a file. For example:
"hw1.py:square": "doctest"
This specifies the doctest for the
square
function inhw1.py
.
The doctest
source is mainly a wrapper on top of client.sources.common.doctest_case.DoctestCase
.