2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2024 Marcel Telka
16 %patch% 01-tox-enable-tests.patch
17 %patch% 02-no-pygal.patch
18 %patch% 03-test-xdist.patch
19 %patch% 04-no-nbmake.patch
20 %patch% 05-no-aspectlib.patch
21 %patch% 06-test-reqs-not-needed.patch
22 %patch% 07-PYTHONPATH.patch
25 # We have no pygal packaged yet
26 PYTEST_ADDOPTS += --deselect tests/test_benchmark.py::test_histogram
27 PYTEST_ADDOPTS += --deselect tests/test_cli.py::test_compare
28 PYTEST_ADDOPTS += --deselect tests/test_storage.py::test_rendering
29 PYTEST_ADDOPTS += --deselect tests/test_storage.py::test_regression_checks
30 PYTEST_ADDOPTS += --deselect tests/test_storage.py::test_regression_checks_inf
31 PYTEST_ADDOPTS += --deselect tests/test_storage.py::test_compare_1
32 PYTEST_ADDOPTS += --deselect tests/test_storage.py::test_compare_2
34 # We have no aspectlib packaged yet
35 PYTEST_ADDOPTS += --deselect tests/test_with_testcase.py::TerribleTerribleWayToWritePatchTests::test_foo2
36 PYTEST_ADDOPTS += --deselect tests/test_with_weaver.py::test_weave_fixture
37 PYTEST_ADDOPTS += --deselect tests/test_with_weaver.py::test_weave_method
39 # https://github.com/ionelmc/pytest-benchmark/issues/163
40 PYTEST_ADDOPTS += --deselect tests/test_utils.py::test_parse_elasticsearch_storage
42 # https://github.com/fedora-python/tox-current-env/issues/68
43 PYTEST_ADDOPTS += --deselect tests/test_cli.py::test_hooks
45 # Drop benchmark reports
46 COMPONENT_TEST_TRANSFORMS += "-e '/^-\{1,\} benchmark:/,/^$$/d'"
47 COMPONENT_TEST_TRANSFORMS += "-e '/^-\{1,\} cProfile/,/^$$/d'"