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
Not sure if this would be a good fit for this package but is it possible to make a code-block-like skip-remote directive that would work like the decorator for the pytest functions, i.e. only runs the doctest if --remote-data has been specified?
afaik we don't yet have a directive that would work for a block of doctest, either for remote-data or for float_cmp, they would be nice to have additions though.
@bsipocz while that is true, the main motivation for breaking these into separate plugins packages is to make them available to packages a la carte, right? In any case it shouldn't be a big deal because it can just be an optional dependency.
My main point is that anything that defines a new doctest directive doesn't belong here: it belongs in pytest-doctestplus.
Activity
astrofrog commentedon Oct 1, 2017
I might be misunderstanding, but does this not already exist?
http://docs.astropy.org/en/stable/development/testguide.html?highlight=REMOTE_DATA#working-with-data-files
specifically:
this works in docstrings and in rst files.
MSeifert04 commentedon Oct 1, 2017
Ah, I haven't seen that one. I was actually thinking of something like this:
But
+REMOTE_DATAwould also work, it's just more verbose.bsipocz commentedon Oct 1, 2017
afaik we don't yet have a directive that would work for a block of doctest, either for remote-data or for float_cmp, they would be nice to have additions though.
Here are the related issues: astropy/astropy#2662 and astropy/astropy#2830
astrofrog commentedon Oct 1, 2017
Ah yes that would be cool!
drdavella commentedon Oct 2, 2017
I think these probably actually belong in https://github.com/astropy/pytest-doctestplus, although any directive dealing with remote data will introduce a dependency on this plugin.
bsipocz commentedon Oct 2, 2017
all of these will be part of
pytest-astropy, so cross dependency shouldn't be a problem I think.drdavella commentedon Oct 2, 2017
@bsipocz while that is true, the main motivation for breaking these into separate
pluginspackages is to make them available to packages a la carte, right? In any case it shouldn't be a big deal because it can just be an optional dependency.My main point is that anything that defines a new doctest directive doesn't belong here: it belongs in pytest-doctestplus.
astrofrog commentedon Oct 2, 2017
I agree that this belongs in doctestplus, with a dependency on this package
MSeifert04 commentedon Oct 2, 2017
will you open an issue there or should I?
drdavella commentedon Oct 2, 2017
I created two new issues there and will close this one:
scientific-python/pytest-doctestplus#2
scientific-python/pytest-doctestplus#3
MSeifert04 commentedon Oct 2, 2017
Thanks @drdavella