Skip to content

Commit

Permalink
[BugFix] Fix openbb-yfinance for equity.discovery Functions (#6945)
Browse files Browse the repository at this point in the history
* fix yfinance discovery

* type-arg

* pylint

* recapture python 3.10+ tests

* recapture all the urllib3_v2 cassettes
  • Loading branch information
deeleeramone authored Nov 16, 2024
1 parent 804534e commit 79b1e47
Show file tree
Hide file tree
Showing 47 changed files with 10,529 additions and 192,206 deletions.
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

0 comments on commit 79b1e47

Please sign in to comment.