mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 06:51:38 +00:00
[BugFix] Fix Seeking Alpha (#6461)
* fix seeking alpha * try again sequence * prevent key error * move value check up the sequence * filter test cassette more --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -1570,21 +1592,6 @@ def test_equity_discovery_top_retail(params, obb):
|
||||
assert len(result.results) > 0
|
||||
|
||||
|
||||
@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",
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user