[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:
Danglewood
2024-05-25 04:28:45 -07:00
committed by GitHub
parent aefd921027
commit 5ff4d8907c
15 changed files with 1490 additions and 438 deletions

View File

@@ -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",
[