mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 05:52:23 +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>
31 lines
562 B
Python
31 lines
562 B
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from openbb_terminal.etf import fmp_model
|
|
|
|
|
|
@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_get_etf_sector_weightings(recorder, name):
|
|
result = fmp_model.get_etf_sector_weightings(name)
|
|
|
|
recorder.capture(result)
|