ImperialCollegeLondon / pyrealm

Development of the pyrealm package, providing an integrated toolbox for modelling plant productivity, growth and demography using Python.
https://pyrealm.readthedocs.io/
MIT License
23 stars 9 forks source link

Broken `pytest` configuration doesn't run doctest #90

Closed davidorme closed 1 year ago

davidorme commented 1 year ago

Describe the bug

The current configuration of pytest in setup.cfg does not run doctest on the package modules. Although --doctest-modules is set, the testpaths setting only includes tests, so none of the module code is tested.

To Reproduce

If testpaths = tests is changed to testpaths = tests pyrealm then the doctests are discovered, many of which fail.