[Enhancement] - PyDocstyle Compliant (#6284)

* PyDocstyle Compliant batch 1

* Batch 2

* Batch 3

* Batch 4

* Batch 5

* Batch 6

* Batch 7

* Linting

* MyPy

* mypy things

* black

* more mypy

* black

* fix that

* black again

* undo that

* Fix error message

* pylint

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
This commit is contained in:
Igor Radovanovic
2024-04-09 15:30:29 +02:00
committed by GitHub
parent 0a64bd19d0
commit a255fa52a0
301 changed files with 1655 additions and 425 deletions

View File

@@ -42,6 +42,7 @@ def obb(pytestconfig): # pylint: disable=inconsistent-return-statements
)
@pytest.mark.integration
def test_etf_search(params, obb):
"""Test the ETF search endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.search(**params)
@@ -225,6 +226,7 @@ def test_etf_search(params, obb):
)
@pytest.mark.integration
def test_etf_historical(params, obb):
"""Test the ETF historical endpoint."""
result = obb.equity.price.historical(**params)
assert result
assert isinstance(result, OBBject)
@@ -242,6 +244,7 @@ def test_etf_historical(params, obb):
)
@pytest.mark.integration
def test_etf_info(params, obb):
"""Test the ETF info endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.info(**params)
@@ -259,6 +262,7 @@ def test_etf_info(params, obb):
)
@pytest.mark.integration
def test_etf_sectors(params, obb):
"""Test the ETF sectors endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.sectors(**params)
@@ -275,6 +279,7 @@ def test_etf_sectors(params, obb):
)
@pytest.mark.integration
def test_etf_holdings_date(params, obb):
"""Test the ETF holdings date endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.holdings_date(**params)
@@ -343,6 +348,7 @@ def test_etf_holdings_date(params, obb):
)
@pytest.mark.integration
def test_etf_holdings(params, obb):
"""Test the ETF holdings endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.holdings(**params)
@@ -368,6 +374,7 @@ def test_etf_holdings(params, obb):
)
@pytest.mark.integration
def test_etf_price_performance(params, obb):
"""Test the ETF price performance endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.price_performance(**params)
@@ -385,6 +392,7 @@ def test_etf_price_performance(params, obb):
)
@pytest.mark.integration
def test_etf_countries(params, obb):
"""Test the ETF countries endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.countries(**params)
@@ -399,6 +407,7 @@ def test_etf_countries(params, obb):
)
@pytest.mark.integration
def test_etf_discovery_gainers(params, obb):
"""Test the ETF discovery gainers endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.discovery.gainers(**params)
@@ -413,6 +422,7 @@ def test_etf_discovery_gainers(params, obb):
)
@pytest.mark.integration
def test_etf_discovery_losers(params, obb):
"""Test the ETF discovery losers endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.discovery.losers(**params)
@@ -427,6 +437,7 @@ def test_etf_discovery_losers(params, obb):
)
@pytest.mark.integration
def test_etf_discovery_active(params, obb):
"""Test the ETF discovery active endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.discovery.active(**params)
@@ -444,6 +455,7 @@ def test_etf_discovery_active(params, obb):
)
@pytest.mark.integration
def test_etf_holdings_performance(params, obb):
"""Test the ETF holdings performance endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.holdings_performance(**params)
@@ -460,6 +472,7 @@ def test_etf_holdings_performance(params, obb):
)
@pytest.mark.integration
def test_etf_equity_exposure(params, obb):
"""Test the ETF equity exposure endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.etf.equity_exposure(**params)