brainy-solstice-2704205/24/2022, 5:57 PM
or any other files that don't have tests in them?
2. I have some tests that import
files, which traditionally have been provided using a resources target and then having
in the dependencies for the
. After changing the version to 2.11, I find that my tests are no longer able to load the test files like they had in the past. I tried switching to the
but that didn't change anything.
high-yak-8589905/24/2022, 6:09 PM
for lots of test files and it's working fine for me
witty-crayon-2278605/24/2022, 6:11 PM
After changing the version to 2.11, I find that my tests are no longer able to load the test files like they had in the past. I tried switching to thethis might be related to source roots?: there were some default patterns in 1.30.x which are no longer installed. to confirm, you’d want to runtarget from
filesbut that didn’t change anything.
and see if you have a source root for the filesystem prefix of the
that you expect to be cut off before you import them
hundreds-father-40405/24/2022, 6:17 PM
Is there a good way to get pytest to ignore __init.py , common.py or any other files that don't have tests in them?You will want to make sure that they are not in the
field of a
"target generator". They should belong to
You can use
to see what the target type is
./pants peek path/to/common.py