From 282770809be75231a212d1555619234f9a9d022b Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:40:19 -0500 Subject: [PATCH] sunpy needs its own ini file so their doctest won't fail here. --- sunpy_tst.ini | 18 ++++++++++++++++++ tox.ini | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sunpy_tst.ini diff --git a/sunpy_tst.ini b/sunpy_tst.ini new file mode 100644 index 0000000..fe46792 --- /dev/null +++ b/sunpy_tst.ini @@ -0,0 +1,18 @@ +[tool:pytest] +testpaths = "sunpy" "docs" +norecursedirs = ".tox" "build" "docs[\/]_build" "docs[\/]generated" "*.egg-info" "examples" "sunpy[/\]_dev" ".jupyter" ".history" "tools" "sunpy[\/]extern" "benchmarks" +doctest_plus = enabled +doctest_optionflags = NORMALIZE_WHITESPACE FLOAT_CMP ELLIPSIS +addopts = --dist no --arraydiff --doctest-rst --doctest-ignore-import-errors -p no:unraisableexception -p no:threadexception +asdf_schema_tests_enabled = true +asdf_schema_root = sunpy/io/special/asdf/resources/ +mpl-results-path = figure_test_images +mpl-use-full-test-name = True +markers = + remote_data: marks this test function as needing remote data. + online: marks this test function as needing online connectivity. + mpl_image_compare: marks this test function as using hash-based Matplotlib figure verification. This mark is not meant to be directly applied, but is instead automatically applied when a test function uses the @sunpy.tests.helpers.figure_test decorator. + flaky + array_compare +remote_data_strict = True +# We do not care about junit_family or filterwarnings here. diff --git a/tox.ini b/tox.ini index 6bde606..57b9e4f 100644 --- a/tox.ini +++ b/tox.ini @@ -49,4 +49,4 @@ commands = reproject,all: pytest --pyargs reproject specreduce,all: pytest --pyargs specreduce specutils,all: pytest --pyargs specutils - sunpy,all: pytest --pyargs sunpy --doctest-ignore-import-errors + sunpy,all: pytest --pyargs sunpy -c sunpy_tst.ini