diff options
Diffstat (limited to 'openbb_platform/extensions/equity/integration/test_equity_api.py')
-rw-r--r-- | openbb_platform/extensions/equity/integration/test_equity_api.py | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/openbb_platform/extensions/equity/integration/test_equity_api.py b/openbb_platform/extensions/equity/integration/test_equity_api.py index f47350f300c..544bb8052b1 100644 --- a/openbb_platform/extensions/equity/integration/test_equity_api.py +++ b/openbb_platform/extensions/equity/integration/test_equity_api.py @@ -87,7 +87,7 @@ def test_equity_fundamental_balance(params, headers): @parametrize( "params", - [({"symbol": "AAPL", "limit": 10, "provider": "fmp"})], + [({"symbol": "AAPL", "limit": 10, "provider": "fmp", "period": "annual"})], ) @pytest.mark.integration def test_equity_fundamental_balance_growth(params, headers): @@ -144,6 +144,14 @@ def test_equity_calendar_splits(params, headers): ({"start_date": "2023-11-09", "end_date": "2023-11-10", "provider": "fmp"}), ({"start_date": "2023-11-09", "end_date": "2023-11-10", "provider": "nasdaq"}), ({"start_date": "2023-11-09", "end_date": "2023-11-10", "provider": "tmx"}), + ( + { + "start_date": None, + "end_date": None, + "provider": "seeking_alpha", + "country": "us", + } + ), ], ) @pytest.mark.integration @@ -223,7 +231,7 @@ def test_equity_fundamental_cash(params, headers): @parametrize( "params", - [({"symbol": "AAPL", "limit": 10, "provider": "fmp"})], + [({"symbol": "AAPL", "limit": 10, "provider": "fmp", "period": "annual"})], ) @pytest.mark.integration def test_equity_fundamental_cash_growth(params, headers): @@ -397,7 +405,14 @@ def test_equity_estimates_historical(params, headers): "calendar_period": None, "provider": "intrinio", } - ) + ), + ( + { + "symbol": "AAPL,BAM:CA", + "period": "annual", + "provider": "seeking_alpha", + } + ), ], ) @pytest.mark.integration @@ -434,6 +449,13 @@ def test_equity_estimates_forward_sales(params, headers): "provider": "fmp", } ), + ( + { + "symbol": "AAPL,BAM:CA", + "period": "annual", + "provider": "seeking_alpha", + } + ), ], ) @pytest.mark.integration @@ -1654,24 +1676,6 @@ def test_equity_discovery_top_retail(params, headers): @parametrize( "params", - [({"provider": "seeking_alpha"})], -) -@pytest.mark.integration -def test_equity_discovery_upcoming_release_days(params, headers): - """Test the equity discovery upcoming release days endpoint.""" - params = {p: v for p, v in params.items() if v} - - query_str = get_querystring(params, []) - url = ( - f"http://0.0.0.0:8000/api/v1/equity/discovery/upcoming_release_days?{query_str}" - ) - result = requests.get(url, headers=headers, timeout=30) - assert isinstance(result, requests.Response) - assert result.status_code == 200 - - -@parametrize( - "params", [ ( { |