summaryrefslogtreecommitdiffstats
path: root/openbb_platform/providers/yfinance/tests/test_yfinance_fetchers.py
diff options
context:
space:
mode:
Diffstat (limited to 'openbb_platform/providers/yfinance/tests/test_yfinance_fetchers.py')
-rw-r--r--openbb_platform/providers/yfinance/tests/test_yfinance_fetchers.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbb_platform/providers/yfinance/tests/test_yfinance_fetchers.py b/openbb_platform/providers/yfinance/tests/test_yfinance_fetchers.py
index 80a809c99e1..0be7b538da6 100644
--- a/openbb_platform/providers/yfinance/tests/test_yfinance_fetchers.py
+++ b/openbb_platform/providers/yfinance/tests/test_yfinance_fetchers.py
@@ -26,6 +26,9 @@ from openbb_yfinance.models.losers import YFLosersFetcher
from openbb_yfinance.models.market_indices import (
YFinanceMarketIndicesFetcher,
)
+from openbb_yfinance.models.price_target_consensus import (
+ YFinancePriceTargetConsensusFetcher,
+)
from openbb_yfinance.models.undervalued_growth_equities import (
YFUndervaluedGrowthEquitiesFetcher,
)
@@ -273,3 +276,12 @@ def test_y_finance_equity_quote_fetcher(credentials=test_credentials):
fetcher = YFinanceEquityQuoteFetcher()
result = fetcher.test(params, credentials)
assert result is None
+
+
+@pytest.mark.record_http
+def test_y_finance_price_target_consensus_fetcher(credentials=test_credentials):
+ params = {"symbol": "AAPL"}
+
+ fetcher = YFinancePriceTargetConsensusFetcher()
+ result = fetcher.test(params, credentials)
+ assert result is None