Pytest: Hard-coded path
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)
# ...
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
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)
# ...