diff --git a/openbb_terminal/core/config/paths.py b/openbb_terminal/core/config/paths.py index 6cbf00611d09..e5b44b65cfef 100644 --- a/openbb_terminal/core/config/paths.py +++ b/openbb_terminal/core/config/paths.py @@ -27,7 +27,7 @@ def get_user_data_directory(): USER_CUSTOM_IMPORTS_DIRECTORY = USER_DATA_DIRECTORY / "custom_imports" USER_PORTFOLIO_DATA_DIRECTORY = USER_DATA_DIRECTORY / "portfolio" USER_ROUTINES_DIRECTORY = USER_DATA_DIRECTORY / "routines" -USER_DATA_SOURCES_DEFAULT_FILE = USER_DATA_DIRECTORY / "data_sources_default.json" +USER_DATA_SOURCES_DEFAULT_FILE = MISCELLANEOUS_DIRECTORY / "data_sources_default.json" USER_PRESETS_DIRECTORY = USER_DATA_DIRECTORY / "presets" USER_REPORTS_DIRECTORY = USER_DATA_DIRECTORY / "reports" USER_CUSTOM_REPORTS_DIRECTORY = USER_DATA_DIRECTORY / "reports" / "custom reports" diff --git a/tests/openbb_terminal/test_sources.py b/tests/openbb_terminal/test_sources.py new file mode 100644 index 000000000000..ee8142aebb79 --- /dev/null +++ b/tests/openbb_terminal/test_sources.py @@ -0,0 +1,10 @@ +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