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

change to model_dump() instead #5561

Merged
merged 2 commits into from
Oct 13, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from openbb_alpha_vantage.models.stock_historical import AVStockHistoricalFetcher
from openbb_core.app.service.user_service import UserService

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from openbb_benzinga.models.stock_news import BenzingaStockNewsFetcher
from openbb_core.app.service.user_service import UserService

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion openbb_platform/providers/cboe/tests/test_cboe_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from openbb_cboe.models.stock_search import CboeStockSearchFetcher
from openbb_core.app.service.user_service import UserService

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion openbb_platform/providers/fmp/tests/test_fmp_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from openbb_fmp.models.stock_splits import FMPStockSplitCalendarFetcher
from openbb_fmp.models.treasury_rates import FMPTreasuryRatesFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion openbb_platform/providers/fred/tests/test_fred_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from openbb_fred.models.sonia_rates import FREDSONIAFetcher
from openbb_fred.models.us_yield_curve import FREDYieldCurveFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from openbb_intrinio.models.stock_news import IntrinioStockNewsFetcher
from openbb_intrinio.models.stock_quote import IntrinioStockQuoteFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion openbb_platform/providers/oecd/tests/test_oecd_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from openbb_oecd.models.gdpnom import OECDGDPNomFetcher
from openbb_oecd.models.gdpreal import OECDGDPRealFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from openbb_polygon.models.stock_historical import PolygonStockHistoricalFetcher
from openbb_polygon.models.stock_news import PolygonStockNewsFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from openbb_quandl.models.cot_search import QuandlCotSearchFetcher
from openbb_quandl.models.sp500_multiples import QuandlSP500MultiplesFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def write_test_credentials(path: str, provider: str) -> None:
)

template = """
test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from openbb_core.app.service.user_service import UserService
from openbb_tradingeconomics.models.economic_calendar import TEEarningsCalendarFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from openbb_yfinance.models.stock_historical import YFinanceStockHistoricalFetcher
from openbb_yfinance.models.stock_news import YFinanceStockNewsFetcher

test_credentials = UserService().default_user_settings.credentials.dict()
test_credentials = UserService().default_user_settings.credentials.model_dump()


@pytest.fixture(scope="module")
Expand Down
Loading