mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-12-01 05:33:37 +00:00
missing integration test
This commit is contained in:
@@ -305,6 +305,35 @@ def test_websockets_unsubscribe(params, headers):
|
||||
assert result.status_code == 200
|
||||
|
||||
|
||||
@parametrize(
|
||||
"params",
|
||||
[
|
||||
{
|
||||
"name": "test_fmp",
|
||||
},
|
||||
{
|
||||
"name": "test_tiingo",
|
||||
},
|
||||
{
|
||||
"name": "test_polygon",
|
||||
},
|
||||
{
|
||||
"name": "test_intrinio",
|
||||
},
|
||||
],
|
||||
)
|
||||
@pytest.mark.integration
|
||||
def test_websockets_get_client_status(params, headers):
|
||||
"""Test the websockets_get_client_status endpoint."""
|
||||
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/websockets/get_client?{query_str}"
|
||||
result = requests.get(url, headers=headers, timeout=10)
|
||||
assert isinstance(result, requests.Response)
|
||||
assert result.status_code == 200
|
||||
|
||||
|
||||
@parametrize(
|
||||
"params",
|
||||
[
|
||||
|
||||
@@ -326,19 +326,15 @@ def test_websockets_get_client(params, obb):
|
||||
[
|
||||
{
|
||||
"name": "test_fmp",
|
||||
"auth_token": None,
|
||||
},
|
||||
{
|
||||
"name": "test_tiingo",
|
||||
"auth_token": None,
|
||||
},
|
||||
{
|
||||
"name": "test_polygon",
|
||||
"auth_token": None,
|
||||
},
|
||||
{
|
||||
"name": "test_intrinio",
|
||||
"auth_token": None,
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user