Skip to content

Commit

Permalink
change to model_dum() instead (#5561)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoaquim committed Oct 13, 2023
1 parent 3e8043f commit ab430a1
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
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

0 comments on commit ab430a1

Please sign in to comment.