I have a requirement to check-in a `.csv` file and...
# general
a
I have a requirement to check-in a
.csv
file and read it in a Python script. I have a test case that checks if the file is present in the required hardcoded location. Everything works fine until I use
pants test
on that script because apparently pants takes everything in that workspace in it’s sandbox location (called
root
in the test logs) and then, of course, the test fails complaining that the file isn’t found in that location. Is there a way to declare the
.csv
file as a resource and set it as a dependency? If it’s of any help, the
.csv
file is stored under its own separate directory and is the only thing there.
a
Thank you. Sorry that I should have mentioned that I am using pants 2.16.0.
a
Thank you so much 😊