pytest-sphinx icon indicating copy to clipboard operation
pytest-sphinx copied to clipboard

WIP Support for :skipif:

Open twmr opened this issue 5 years ago • 0 comments

  • currently only supported in the testoutput directive
  • completely skips the doctest if the expression in :skipif: evaluates to True.

It is planned to extend this commit s.t. the behavior of skipif is the same as written in the documentation of sphinx.ext.doctest:

The value of the skipif option is evaluated as a Python expression. If the result is a true value, the directive is omitted from the test run just as if it wasn’t present in the file at all.

Closes: #9

twmr avatar Jun 06 '19 18:06 twmr