mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
* add data sources defaults to model * fix f string * refactor sources controller * write sources to file * write to user file * add user data sources file inside OpenBBUserData * append to user file, don't rewrite * fix when sources folder does not exist * codespell * change func name * change path to str * ruff * Add method to upload entire user field * change clear func args * update get_ordered_list_sources function * move flatten * move flatten * change extend func name * remove comment * clean sources utils funcs * mypy * Update utils.py * spacing * docs --------- Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
11 lines
277 B
Python
11 lines
277 B
Python
import json
|
|
|
|
from openbb_terminal.core.config.paths import DATA_SOURCES_DEFAULT_FILE
|
|
|
|
|
|
def test_sources_load():
|
|
with open(DATA_SOURCES_DEFAULT_FILE) as json_file:
|
|
json_doc = json.load(json_file)
|
|
assert isinstance(json_doc, dict)
|
|
assert "stocks" in json_doc
|