From cf36a2faa29c4b2bcd50186789770527a8da21de Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Tue, 26 Nov 2024 01:39:18 -0800 Subject: [PATCH] fix some bad integration test params (#6964) --- .../equity/integration/test_equity_api.py | 6 +++--- .../equity/integration/test_equity_python.py | 6 +++--- .../news/integration/test_news_api.py | 14 +++++++------- .../news/integration/test_news_python.py | 18 +++++++++--------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/openbb_platform/extensions/equity/integration/test_equity_api.py b/openbb_platform/extensions/equity/integration/test_equity_api.py index a8e144adb5f8..a675e3dbb456 100644 --- a/openbb_platform/extensions/equity/integration/test_equity_api.py +++ b/openbb_platform/extensions/equity/integration/test_equity_api.py @@ -67,7 +67,7 @@ def headers(): { "symbol": "AAPL", "period": "annual", - "limit": 12, + "limit": 5, "provider": "yfinance", } ), @@ -211,7 +211,7 @@ def test_equity_calendar_earnings(params, headers): { "symbol": "AAPL", "period": "annual", - "limit": 12, + "limit": 5, "provider": "yfinance", } ), @@ -516,7 +516,7 @@ def test_equity_estimates_forward_eps(params, headers): { "symbol": "AAPL", "period": "annual", - "limit": 12, + "limit": 5, "provider": "yfinance", } ), diff --git a/openbb_platform/extensions/equity/integration/test_equity_python.py b/openbb_platform/extensions/equity/integration/test_equity_python.py index 3f1ea1a59927..f8c48a33f58a 100644 --- a/openbb_platform/extensions/equity/integration/test_equity_python.py +++ b/openbb_platform/extensions/equity/integration/test_equity_python.py @@ -65,7 +65,7 @@ def obb(pytestconfig): { "symbol": "AAPL", "period": "annual", - "limit": 12, + "limit": 5, "provider": "yfinance", } ), @@ -196,7 +196,7 @@ def test_equity_calendar_earnings(params, obb): { "symbol": "AAPL", "period": "annual", - "limit": 12, + "limit": 5, "provider": "yfinance", } ), @@ -411,7 +411,7 @@ def test_equity_estimates_historical(params, obb): { "provider": "yfinance", "symbol": "AAPL", - "limit": 12, + "limit": 5, "period": "annual", } ), diff --git a/openbb_platform/extensions/news/integration/test_news_api.py b/openbb_platform/extensions/news/integration/test_news_api.py index d0e1f5a2fa20..f3a7a4537943 100644 --- a/openbb_platform/extensions/news/integration/test_news_api.py +++ b/openbb_platform/extensions/news/integration/test_news_api.py @@ -119,18 +119,18 @@ def test_news_world(params, headers): ( { "display": "full", - "date": "2023-01-01", - "start_date": "2023-01-01", + "date": None, + "start_date": "2023-06-01", "end_date": "2023-06-06", "updated_since": 1, "published_since": 1, "sort": "created", - "order": "desc", - "isin": "US0378331005", - "cusip": "037833100", - "channels": "General", + "order": "asc", + "isin": None, + "cusip": None, + "channels": None, "topics": "AAPL", - "authors": "Benzinga Insights", + "authors": None, "content_types": "headline", "provider": "benzinga", "symbol": "AAPL,MSFT", diff --git a/openbb_platform/extensions/news/integration/test_news_python.py b/openbb_platform/extensions/news/integration/test_news_python.py index f1492d024047..4a80fa42aa90 100644 --- a/openbb_platform/extensions/news/integration/test_news_python.py +++ b/openbb_platform/extensions/news/integration/test_news_python.py @@ -24,18 +24,18 @@ def obb(pytestconfig): # pylint: disable=inconsistent-return-statements ( { "display": "full", - "date": "2023-01-01", - "start_date": "2023-01-01", - "end_date": "2023-06-06", - "updated_since": 900000, - "published_since": 900000, + "date": None, + "start_date": "2023-05-01", + "end_date": "2023-05-31", + "updated_since": None, + "published_since": None, "sort": "created", - "order": "desc", - "isin": "US0378331005", - "cusip": "037833100", + "order": "asc", + "isin": None, + "cusip": None, "channels": "General", "topics": "car", - "authors": "Benzinga Insights", + "authors": None, "content_types": "Car", "provider": "benzinga", "limit": 20,