silly-spring-87100
12/29/2021, 10:27 AMtest_end_to_end.py
use files from _input
directory
I have it structured this way:
tests
|---_input
|---file1.csv
|---file2.csv
|--- test_end_to_end.py
|--- BUILD
And BUILD file looks like this
python_sources()
python_tests(
name = "tests0",
)
files(
name = "input",
sources = [
"_input/*",
],
)
And unfortunately this do not work.
How should I modify my BUILD file?curved-television-6568
12/29/2021, 10:30 AMpython_tests(..., dependencies=[":input"])
resources
rather than files
target, though..
See https://www.pantsbuild.org/docs/resources for more details..happy-kitchen-89482
12/29/2021, 10:32 AMcurved-television-6568
12/29/2021, 10:32 AMfiles
section as well, covering your use case.