diff options
Diffstat (limited to 'openbb_platform/extensions/equity/integration/test_equity_python.py')
-rw-r--r-- | openbb_platform/extensions/equity/integration/test_equity_python.py | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/openbb_platform/extensions/equity/integration/test_equity_python.py b/openbb_platform/extensions/equity/integration/test_equity_python.py index 66ed58e6fde..cb836f59019 100644 --- a/openbb_platform/extensions/equity/integration/test_equity_python.py +++ b/openbb_platform/extensions/equity/integration/test_equity_python.py @@ -83,7 +83,7 @@ def test_equity_fundamental_balance(params, obb): @parametrize( "params", [ - ({"symbol": "AAPL", "limit": 10, "provider": "fmp"}), + ({"symbol": "AAPL", "limit": 10, "provider": "fmp", "period": "annual"}), ], ) @pytest.mark.integration @@ -132,6 +132,14 @@ def test_equity_calendar_splits(params, obb): ({"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 @@ -206,7 +214,7 @@ def test_equity_fundamental_cash(params, obb): @parametrize( "params", [ - ({"symbol": "AAPL", "limit": 10, "provider": "fmp"}), + ({"symbol": "AAPL", "limit": 10, "provider": "fmp", "period": "annual"}), ], ) @pytest.mark.integration @@ -705,7 +713,14 @@ def test_equity_estimates_consensus(params, obb): "calendar_period": None, "provider": "intrinio", } - ) + ), + ( + { + "symbol": "AAPL,BAM:CA", + "period": "annual", + "provider": "seeking_alpha", + } + ), ], ) @pytest.mark.integration @@ -739,6 +754,13 @@ def test_equity_estimates_forward_sales(params, obb): "provider": "fmp", } ), + ( + { + "symbol": "AAPL,BAM:CA", + "period": "annual", + "provider": "seeking_alpha", + } + ), ], ) @pytest.mark.integration @@ -1572,21 +1594,6 @@ def test_equity_discovery_top_retail(params, obb): @parametrize( "params", - [({"provider": "seeking_alpha"})], -) -@pytest.mark.integration -def test_equity_discovery_upcoming_release_days(params, obb): - """Test the equity discovery upcoming release days endpoint.""" - params = {p: v for p, v in params.items() if v} - - result = obb.equity.discovery.upcoming_release_days(**params) - assert result - assert isinstance(result, OBBject) - assert len(result.results) > 0 - - -@parametrize( - "params", [ ( { |