From d4207527ebc63a9ff24808a91614afca33877c2a Mon Sep 17 00:00:00 2001 From: Henrique Joaquim Date: Wed, 15 Nov 2023 15:16:00 +0000 Subject: [PATCH] Remove ultima from deps (#5736) * remove ultima from deps * skip ultima test * black * change skip location * try except statement to avoid error on the ci --- openbb_platform/dev_install.py | 1 - .../providers/ultima/tests/test_ultima_fetchers.py | 7 ++++++- openbb_platform/pyproject.toml | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/openbb_platform/dev_install.py b/openbb_platform/dev_install.py index efaf1623911..9e968bdba40 100644 --- a/openbb_platform/dev_install.py +++ b/openbb_platform/dev_install.py @@ -46,7 +46,6 @@ openbb-finra = { path = "./providers/finra", develop = true } openbb-nasdaq = { path = "./providers/nasdaq", optional = true, develop = true } openbb-seeking-alpha = { path = "./providers/seeking_alpha", optional = true, develop = true } openbb-stockgrid = { path = "./providers/stockgrid" ,optional = true, develop = true } -openbb-ultima = { path = "./providers/ultima", optional = true, develop = true } openbb-wsj = { path = "./providers/wsj", develop = true } openbb-yfinance = { path = "./providers/yfinance", optional = true, develop = true } diff --git a/openbb_platform/providers/ultima/tests/test_ultima_fetchers.py b/openbb_platform/providers/ultima/tests/test_ultima_fetchers.py index c1c2bf3d7ec..3f6475673f0 100644 --- a/openbb_platform/providers/ultima/tests/test_ultima_fetchers.py +++ b/openbb_platform/providers/ultima/tests/test_ultima_fetchers.py @@ -1,6 +1,10 @@ import pytest from openbb_core.app.service.user_service import UserService -from openbb_ultima.models.company_news import UltimaCompanyNewsFetcher + +try: + from openbb_ultima.models.company_news import UltimaCompanyNewsFetcher +except ImportError: + pytest.skip("openbb-ultima is not installed on the CI.", allow_module_level=True) test_credentials = UserService().default_user_settings.credentials.model_dump( mode="json" @@ -21,6 +25,7 @@ def vcr_config(): @pytest.mark.record_http +@pytest.mark.skip(reason="openbb-ultima is not installed on the CI.") def test_ultima_company_news_fetcher(credentials=test_credentials): params = {"symbols": "AAPL, MSFT"} diff --git a/openbb_platform/pyproject.toml b/openbb_platform/pyproject.toml index 053a1029858..22947bbe7c4 100644 --- a/openbb_platform/pyproject.toml +++ b/openbb_platform/pyproject.toml @@ -78,7 +78,6 @@ all = [ "openbb-seeking-alpha", "openbb-stockgrid", "openbb-technical", - "openbb-ultima", "openbb-wsj", "openbb-yfinance", ]