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
This commit is contained in:
Henrique Joaquim
2023-11-15 15:16:00 +00:00
committed by GitHub
parent cffd302b0f
commit d4207527eb
3 changed files with 6 additions and 3 deletions

View File

@@ -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 }

View File

@@ -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"}

View File

@@ -78,7 +78,6 @@ all = [
"openbb-seeking-alpha",
"openbb-stockgrid",
"openbb-technical",
"openbb-ultima",
"openbb-wsj",
"openbb-yfinance",
]