[AstroPy] Enable doctests in Astropy-affiliated packages
embray at stsci.edu
Mon Apr 27 09:08:06 EDT 2015
To enable doctests, make sure that the setup.cfg in the project's root contains
doctest_plus = enabled
in the [pytest] section.
I'm not sure why that isn't there by default--maybe it should be.
Hope that helps,
(P.S. This sort of question is probably better suited to ask right on GitHub
when working on the P.R., or on the astropy-dev mailing list, which is
read/replied to by people doing active development on Astropy affiliated packages)
On 04/24/2015 01:06 PM, Singer, Leo P. (GSFC-661.0)[OAK RIDGE ASSOCIATED
UNIVERSITIES (ORAU)] wrote:
> I am working on a pull request for an Astropy-affiliated package
> (https://github.com/astrofrog/reproject/pull/27). How do we enable doctests in
> this package using the Astropy testing framework?
> Leo P. Singer
> NASA Postdoctoral Program Fellow
> Goddard Space Flight Center
> AstroPy mailing list
> AstroPy at scipy.org
More information about the AstroPy