You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark tests as remote inline: # doctest: +REMOTE_DATA
Skip tests within .rst docs: .. doctest-skip::, .. doctest-skip-all
Is there a way to mark .. doctest-remote or .. doctest-remote-all? I think it should be straightforward to add such a thing, but I don't know exactly how to write a new directive.
class DoctestRemoteDirective(Directive):
... do something with the pytest config.getoption('remote_data') ...
def setup(app):
app.add_directive('doctest-remote', DoctestRemoteDirective)
app.add_directive('doctest-remote-all', DoctestRemoteDirective)
I'm just not sure how to get config into the DoctestXDirective's namespace, where config is an object found in pytest_plugins.py
@pllim - I think this issue was never addressed, and we still don't have a way to flag a block of doctest either with "REMOTE_DATA" or with "FLOAT_CMP".
Activity
keflavich commentedon Aug 7, 2014
My first look says we need
I'm just not sure how to get
configinto theDoctestXDirective's namespace, whereconfigis an object found inpytest_plugins.pypllim commentedon Sep 30, 2016
We have this now, right? Can we close this?
bsipocz commentedon Oct 10, 2016
@pllim - I think this issue was never addressed, and we still don't have a way to flag a block of doctest either with "REMOTE_DATA" or with "FLOAT_CMP".
bsipocz commentedon Jul 17, 2018
This is now upstream in
pytest-doctestplus, so closing it here. Nevertheless one can see the status in scientific-python/pytest-doctestplus#2.