nostrrelay/tests/helpers.py
2023-02-10 12:16:25 +02:00

13 lines
253 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