Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BugFix] Fix openbb-yfinance for equity.discovery Functions #6945

Merged
merged 5 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions openbb_platform/extensions/equity/integration/test_equity_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ def test_equity_profile(params, headers):
@parametrize(
"params",
[
({"sort": "desc", "provider": "yfinance"}),
({"sort": "desc", "provider": "yfinance", "limit": 10}),
({"provider": "tmx", "category": "52w_high"}),
],
)
Expand All @@ -1555,7 +1555,7 @@ def test_equity_discovery_gainers(params, headers):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_losers(params, headers):
Expand All @@ -1571,7 +1571,7 @@ def test_equity_discovery_losers(params, headers):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_active(params, headers):
Expand Down Expand Up @@ -1606,7 +1606,7 @@ def test_equity_price_performance(params, headers):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_undervalued_large_caps(params, headers):
Expand All @@ -1622,7 +1622,7 @@ def test_equity_discovery_undervalued_large_caps(params, headers):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_undervalued_growth(params, headers):
Expand All @@ -1638,7 +1638,7 @@ def test_equity_discovery_undervalued_growth(params, headers):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_aggressive_small_caps(params, headers):
Expand All @@ -1656,7 +1656,7 @@ def test_equity_discovery_aggressive_small_caps(params, headers):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_growth_tech(params, headers):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ def test_equity_profile(params, obb):
@parametrize(
"params",
[
({"sort": "desc", "provider": "yfinance"}),
({"sort": "desc", "provider": "yfinance", "limit": 10}),
({"provider": "tmx", "category": "52w_high"}),
],
)
Expand All @@ -1482,7 +1482,7 @@ def test_equity_discovery_gainers(params, obb):

@parametrize(
"params",
[({"sort": "desc"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_losers(params, obb):
Expand All @@ -1497,7 +1497,7 @@ def test_equity_discovery_losers(params, obb):

@parametrize(
"params",
[({"sort": "desc"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_active(params, obb):
Expand Down Expand Up @@ -1530,7 +1530,7 @@ def test_equity_price_performance(params, obb):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_undervalued_large_caps(params, obb):
Expand All @@ -1545,7 +1545,7 @@ def test_equity_discovery_undervalued_large_caps(params, obb):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_undervalued_growth(params, obb):
Expand All @@ -1560,7 +1560,7 @@ def test_equity_discovery_undervalued_growth(params, obb):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_aggressive_small_caps(params, obb):
Expand All @@ -1575,7 +1575,7 @@ def test_equity_discovery_aggressive_small_caps(params, obb):

@parametrize(
"params",
[({"sort": "desc", "provider": "yfinance"})],
[({"sort": "desc", "provider": "yfinance", "limit": 10})],
)
@pytest.mark.integration
def test_equity_discovery_growth_tech(params, obb):
Expand Down
Loading
Loading