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
{{ message }}
Repository navigation
Add directive supporting the use of remote data in doctests #2
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)
Activity
bsipocz commentedon Jul 17, 2018
Related issue: astropy/astropy#2830
kakirastern commentedon Mar 29, 2019
Hi, is it okay for me to work on this issue?
kakirastern commentedon Mar 29, 2019
Thanks @bsipocz for the approval! Will follow up on this soon after investigating on the issue further.
bsipocz commentedon Mar 29, 2019
you don't need to ask for permission to work on issues. If there are work in progress it is most probably cross linked somewhere in the issues.
kakirastern commentedon Mar 29, 2019
Yup @bsipocz, understood.
kakirastern commentedon Mar 29, 2019
I am guessing (albeit an educated one) that I will need to modify at least the file at "pytest-doctestplus/pytest_doctestplus/output_checker.py", plus some other tests too...
Or in hindsight some file in the folder "pytest-doctestplus/pytest_doctestplus"
kakirastern commentedon Mar 29, 2019
So something in the line of astropy/astropy#2830 (comment) are to be implemented...
configinto theDoctestRemoteDirective's namespace, whereconfigrefers to an object found in "pytest_plugins.py", or some file to the same effectkakirastern commentedon Mar 29, 2019
Note: Some other reference which may be useful regarding the
OutputCheckerandDocTestRunnerclasses relevant to thedoctest.register_optionflagflag option in the proposed PR: https://docs.python.org/3/library/doctest.html#doctest.register_optionflag