Files
OpenBB/tests/openbb_terminal/test_sources.py
montezdesousa b9ea4d5cd0 Refactor sources menu (#4668)
* 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>
2023-04-05 12:13:34 +00:00

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