astropy / astropy/astropy

Reset namespace for testing config docs

Open
#8,781 12 comments 0 reactions 1 assignee Claimed by @bsipocz View on GitHub
config constants testing units utils
Dominant language
Python
Stars
5.3k
Forks
2.2k
Avg merge
1d 18h
Merged PRs (30d)
74

Description

Currently doctesting has been switched off for `ScienceState` related docs, but ideally anything that suppose to work for the users should be tested. To make this happen we need to reset the namespace while testing, I'm certain there is a clever way to do it.

Bottom line, those docs should be tested by the time we ship it to the users, if nothing else by brute force removing the modules prior in a `testsetup` directive, etc.

See discussion here: https://github.com/astropy/astropy/pull/8517#discussion_r289228267

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.