mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 12:51:49 +00:00
* Cleanse PO from Yahoo Finance * I removed equal but then moved it back in * Update tests * Get rid of sust command * Get rid of quote since broken * Added in export capability for quote * Remove pir and summary, fix news and change source for weights * Update stuff * Add sources * Update portfolio to not be dependend on Yahoo Finance * Update all tests * Update SDK * Details * Fix integration scripts * I think I had to rewrite these * Update more tests * oopsie * Fix 1 * Fix Sort * and fix test --------- Co-authored-by: james <jmaslek11@gmail.com>
28 lines
608 B
Python
28 lines
608 B
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from openbb_terminal.etf import fmp_view
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def vcr_config():
|
|
return {
|
|
"filter_headers": [("User-Agent", None)],
|
|
"filter_query_parameters": [
|
|
("apikey", "MOCK_API_KEY"),
|
|
],
|
|
}
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.parametrize(
|
|
"name",
|
|
["VTI"],
|
|
)
|
|
def test_display_etf_weightings(name, mocker):
|
|
mocker.patch(target="openbb_terminal.helper_classes.TerminalStyle.visualize_output")
|
|
fmp_view.display_etf_weightings(name, raw=True, export="")
|