nostrrelay/tests/helpers.py
2023-02-03 09:58:50 +02:00

12 lines
252 B
Python

import json
FIXTURES_PATH = "tests/extensions/nostrrelay/fixture"
def get_fixtures(file):
"""
Read the content of the JSON file.
"""
with open(f"{FIXTURES_PATH}/{file}.json") as f:
raw_data = json.load(f)
return raw_data