Pytest: Hard-coded path
examples/pytest/hard-coded-path/app.py
import json data_file = "/corporate/fixed/path/data.json" def do_something(): print(data_file) #with open(data_file) as fh: # data = json.load(fh) # ...
import json data_file = "/corporate/fixed/path/data.json" def do_something(): print(data_file) #with open(data_file) as fh: # data = json.load(fh) # ...