I have a python file and a helper json file. The json is loaded via
with open("scraper_dbs.json") as f:
scraper_dbs = json.load(f)
From my testfolder I want to test the file which looks like
from path.to.file import function
On this import statement I get the error FileNotFoundError: [Errno 2] No such file or directory: 'scraper_dbs.json'
When I run the python code itself it finds the json and continues on. What do I miss?