Files
OpenBB/tests/openbb_terminal/test_sources.py
2023-02-21 17:29:48 +00:00

11 lines
292 B
Python

import json
from openbb_terminal.core.config.paths import USER_DATA_SOURCES_DEFAULT_FILE
def test_sources_load():
with open(str(USER_DATA_SOURCES_DEFAULT_FILE)) as json_file:
json_doc = json.load(json_file)
assert isinstance(json_doc, dict)
assert "stocks" in json_doc