mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 12:51:49 +00:00
Remove Ultima provider (#6012)
This commit is contained in:
@@ -147,12 +147,6 @@ def test_news_world(params, headers):
|
||||
"source": "bloomberg.com",
|
||||
}
|
||||
),
|
||||
# (
|
||||
# {
|
||||
# "provider": "ultima",
|
||||
# "sectors": "Real Estate",
|
||||
# }
|
||||
# ),
|
||||
],
|
||||
)
|
||||
@pytest.mark.integration
|
||||
@@ -164,26 +158,3 @@ def test_news_company(params, headers):
|
||||
result = requests.get(url, headers=headers, timeout=10)
|
||||
assert isinstance(result, requests.Response)
|
||||
assert result.status_code == 200
|
||||
|
||||
|
||||
@pytest.mark.skip("openbb-ultima is not installed on the CI.")
|
||||
@parametrize(
|
||||
"params",
|
||||
[
|
||||
(
|
||||
{
|
||||
"provider": "ultima",
|
||||
"sectors": "Real Estate",
|
||||
}
|
||||
),
|
||||
],
|
||||
)
|
||||
@pytest.mark.integration
|
||||
def test_news_sector(params, headers):
|
||||
params = {p: v for p, v in params.items() if v}
|
||||
|
||||
query_str = get_querystring(params, [])
|
||||
url = f"http://0.0.0.0:8000/api/v1/news/sector?{query_str}"
|
||||
result = requests.get(url, headers=headers, timeout=10)
|
||||
assert isinstance(result, requests.Response)
|
||||
assert result.status_code == 200
|
||||
|
||||
@@ -141,12 +141,6 @@ def test_news_world(params, obb):
|
||||
"source": "bloomberg.com",
|
||||
}
|
||||
),
|
||||
# (
|
||||
# {
|
||||
# "provider": "ultima",
|
||||
# "symbols": "AAPL,MSFT",
|
||||
# }
|
||||
# ),
|
||||
],
|
||||
)
|
||||
@pytest.mark.integration
|
||||
@@ -157,25 +151,3 @@ def test_news_company(params, obb):
|
||||
assert result
|
||||
assert isinstance(result, OBBject)
|
||||
assert len(result.results) > 0
|
||||
|
||||
|
||||
@pytest.mark.skip("openbb-ultima is not installed on the CI.")
|
||||
@parametrize(
|
||||
"params",
|
||||
[
|
||||
(
|
||||
{
|
||||
"provider": "ultima",
|
||||
"sectors": "Real Estate",
|
||||
}
|
||||
),
|
||||
],
|
||||
)
|
||||
@pytest.mark.integration
|
||||
def test_news_sector(params, obb):
|
||||
params = {p: v for p, v in params.items() if v}
|
||||
|
||||
result = obb.news.sector(**params)
|
||||
assert result
|
||||
assert isinstance(result, OBBject)
|
||||
assert len(result.results) > 0
|
||||
|
||||
Reference in New Issue
Block a user