Skip to content

Commit

Permalink
Change sources path (#4312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaslek authored Feb 21, 2023
1 parent cebf454 commit 2c9cddb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openbb_terminal/core/config/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions tests/openbb_terminal/test_sources.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2c9cddb

Please sign in to comment.