mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
Change sources path (#4312)
This commit is contained in:
@@ -27,7 +27,7 @@ USER_EXPORTS_DIRECTORY = USER_DATA_DIRECTORY / "exports"
|
||||
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"
|
||||
|
||||
10
tests/openbb_terminal/test_sources.py
Normal file
10
tests/openbb_terminal/test_sources.py
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user