2024-07-20 11:09:35 +00:00
|
|
|
import json
|
2024-07-22 18:26:27 +00:00
|
|
|
import os
|
2024-07-20 11:09:35 +00:00
|
|
|
|
|
|
|
CWD = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
|
|
|
|
2024-07-22 18:26:27 +00:00
|
|
|
def get_expected_response(pkg, test_name):
|
2024-07-20 11:09:35 +00:00
|
|
|
expected_response_file = test_name + ".json"
|
2024-07-22 18:26:27 +00:00
|
|
|
with open(
|
|
|
|
os.path.join(CWD, pkg, 'expected_responses', expected_response_file),
|
|
|
|
'r', encoding="utf8") as file:
|
2024-07-20 11:09:35 +00:00
|
|
|
expected_response = json.load(file)
|
|
|
|
return expected_response
|