File: pytest.ini

package info (click to toggle)
ndcube 2.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,012 kB
  • sloc: python: 7,838; makefile: 34
file content (64 lines) | stat: -rw-r--r-- 2,674 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[pytest]
minversion = 7.0
testpaths =
    ndcube
    docs
norecursedirs =
    .tox
    build
    docs/_build
    docs/generated
    *.egg-info
    examples
    ndcube/_dev
    .history
    ndcube/extern
doctest_plus = enabled
doctest_optionflags =
    NORMALIZE_WHITESPACE
    FLOAT_CMP
    ELLIPSIS
text_file_format = rst
addopts =
    --doctest-rst
    -p no:unraisableexception
    -p no:threadexception
    -m "not mpl_image_compare"
    --doctest-ignore-import-errors
    --doctest-continue-on-failure
mpl-results-path = figure_test_images
mpl-use-full-test-name = true
remote_data_strict = True
doctest_subpackage_requires =
    docs/explaining_ndcube/* = numpy>=2.0.0
markers =
    limit_memory: pytest-memray marker to fail a test if too much memory used
filterwarnings =
    # Turn all warnings into errors so they do not pass silently.
    error
    # Do not fail on pytest config issues (i.e. missing plugins) but do show them
    always::pytest.PytestConfigWarning
    # A list of warnings to ignore follows. If you add to this list, you MUST
    # add a comment or ideally a link to an issue that explains why the warning
    # is being ignored
    ignore::DeprecationWarning
    ignore::astropy.utils.exceptions.AstropyWarning
    ignore::astropy.utils.exceptions.AstropyDeprecationWarning
    ignore::FutureWarning
    # This is due to dependencies building with a numpy version different from
    # the local installed numpy version, but should be fine
    # See https://github.com/numpy/numpy/issues/15748#issuecomment-598584838
    # This has to be first as it can be triggered by other warnings
    ignore:numpy.ufunc size changed:RuntimeWarning
    ignore:numpy.ndarray size changed:RuntimeWarning
    # These are raised by our tests as we don't add observor locations for the test WCS
    # Nor handle correct dateref values that make astropy happy
    ignore:target cannot be converted to ICRS, so will not be set on SpectralCoord:astropy.utils.exceptions.AstropyUserWarning
    ignore:No observer defined on WCS, SpectralCoord will be converted without any velocity frame change:astropy.utils.exceptions.AstropyUserWarning
    ignore:.*Set MJDREF to.*:astropy.wcs.wcs.FITSFixedWarning
    # This is raised by docs/explaining_ndcube/visualization.rst
    ignore:Animating a NDCube does not support transposing the array. The world axes may not display as expected because the array will not be transposed:UserWarning
    # This is raised by the Windows and mac os build for visualization.rst
    ignore:FigureCanvasAgg is non-interactive, and thus cannot be shown:UserWarning
    # Oldestdeps from gWCS
    ignore:pkg_resources is deprecated as an API