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 2023 Marcel Telka
16 %patch% 01-test-no-django.patch
19 # This project does not support tox so we need to provide test requirements
21 TEST_REQUIREMENTS_EXTRAS += testing
23 # Following tests fails with the 'pkg' project installed.
24 # https://github.com/davidhalter/jedi/issues/2034
25 PYTEST_ADDOPTS += --deselect test/test_api/test_classes.py::test_inheritance_module_path
26 PYTEST_ADDOPTS += --deselect test/test_inference/test_imports.py::test_correct_zip_package_behavior
27 PYTEST_ADDOPTS += --deselect test/test_inference/test_imports.py::test_find_module_package_zipped
28 PYTEST_ADDOPTS += --deselect test/test_inference/test_imports.py::test_zip_package_import_complete
30 # https://github.com/davidhalter/jedi/issues/2022
31 PYTEST_ADDOPTS += --deselect test/test_api/test_completion.py::test_complete_expanduser
33 # https://github.com/davidhalter/jedi/issues/2033
34 PYTEST_ADDOPTS += --deselect test/test_inference/test_imports.py::test_duplicated_import