average-australia-85137
03/08/2022, 8:02 PMalthough it behaves identically to the python_tests target generator and you can safely use that insteadinstead of
although it behaves identically to the python_sources target generator and you can safely use that insteadIt has the same default sources as python_tests just adding conftest:
expected_file_extensions = (".py", "") # Note that this does not include `.pyi`.
default = ("test_*.py", "*_test.py", "tests.py")
class PythonTestUtilsGeneratingSourcesField(PythonGeneratingSourcesBase):
default = ("conftest.py", "test_*.pyi", "*_test.pyi", "tests.pyi")
[1] https://www.pantsbuild.org/docs/reference-python_test_utils#codesourcescodehundreds-father-404
03/08/2022, 8:31 PMpython_source
target per entry of sources
. That's because conftest.py
and test_foo.pyi
are not actually tests - they should not be executed via Pytesthundreds-father-404
03/08/2022, 8:31 PMhundreds-father-404
03/08/2022, 8:32 PMaverage-australia-85137
03/09/2022, 1:04 AMhundreds-father-404
03/09/2022, 1:05 AMhundreds-father-404
03/09/2022, 1:07 AMaverage-australia-85137
03/09/2022, 1:08 AMhundreds-father-404
03/09/2022, 1:13 AM