Test tasks returning a file - use other temporary directory #6409
Unanswered
HansBambel
asked this question in
Q&A
Replies: 1 comment
-
Here can help you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a task that I want to test that returns a
CSVFile
:This is my test:
I am using
fl.current_context().working_directory
for a path. If I understood it correctly, this path is just temporary in /var/folders which will be cleared after a reboot.When testing, I want to use pytest's temporary folders via the fixture
tmp_path
(https://docs.pytest.org/en/7.1.x/how-to/tmp_path.html) as this at most contains 3 instances of runs.When I am not rebooting a lot or not manually cleaning out the
/var/folders
directory it gets cluttered with a lot of files from running tests.How would I go about this? Is that even possible?
Beta Was this translation helpful? Give feedback.
All reactions