/
conftest.py
42 lines (36 loc) · 1.72 KB
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWarnings as
## exceptions
# enable_deprecations_as_exceptions()
## Uncomment and customize the following lines to add/remove entries
## from the list of packages for which version numbers are displayed
## when running the tests ... this was added in Astropy 1.0
try:
PYTEST_HEADER_MODULES['cython'] = 'cython'
PYTEST_HEADER_MODULES['pandas'] = 'pandas'
PYTEST_HEADER_MODULES['skimage'] = 'skimage'
PYTEST_HEADER_MODULES['sklearn'] = 'sklearn'
PYTEST_HEADER_MODULES['uncertainties'] = 'uncertainties'
PYTEST_HEADER_MODULES['iminuit'] = 'iminuit'
# ROOT doesn't have a __version__ attribute
# PYTEST_HEADER_MODULES['ROOT'] = 'ROOT'
# PYTEST_HEADER_MODULES['rootpy'] = 'rootpy'
PYTEST_HEADER_MODULES['astropy'] = 'astropy'
PYTEST_HEADER_MODULES['sherpa'] = 'sherpa'
PYTEST_HEADER_MODULES['gammapy'] = 'gammapy'
PYTEST_HEADER_MODULES['naima'] = 'naima'
PYTEST_HEADER_MODULES['reproject'] = 'reproject'
PYTEST_HEADER_MODULES['photutils'] = 'photutils'
PYTEST_HEADER_MODULES['gwcs'] = 'gwcs'
PYTEST_HEADER_MODULES['wcsaxes'] = 'wcsaxes'
PYTEST_HEADER_MODULES['aplpy'] = 'aplpy'
PYTEST_HEADER_MODULES['pyregion'] = 'pyregion'
# Commented out for git issue 15
# PYTEST_HEADER_MODULES['astroplan'] = 'astroplan'
# `ginga` doesn't have a __version__ attribute yet, so this won't work:
#PYTEST_HEADER_MODULES['ginga'] = 'ginga'
except NameError: # astropy < 1.0
pass