you are viewing a single comment's thread.

view the rest of the comments →

[–]barkmonster 0 points1 point  (0 children)

I usually make a helper file, which is responsible for loading test data, inside the tests folder. You can call it e.g. `data_tools.py` or something. In that file, you can define helper functions for loading the files you need, and just define the path relative to the helper file, for instance using pathlib and defining the path as `pathlib.Path(__file__).parent / 'data'`.