Add tests/conftest.py to add load_mock method
ADD
tests/conftest.py
+import json
+from os.path import dirname, join as join_path
+
+MOCK_DATA_DIR = join_path(dirname(__file__), "mock_data")
+
+
+def load_mock(name: str):
+ filename = join_path(MOCK_DATA_DIR, name)
+ with open(filename, encoding='utf-8') as f:
+ return json.load(f)

Add tests/conftest.py to add load_mock method