Skip to content
albert12132 edited this page Feb 5, 2015 · 1 revision

OK supports doctests as a source. See the Python documentation for more details.

Configuration

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 in hw1.py.

Developer Notes

The doctest source is mainly a wrapper on top of client.sources.common.doctest_case.DoctestCase.

Clone this wiki locally