summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2023-11-30 17:00:56 +0100
committerGitHub <noreply@github.com>2023-11-30 16:00:56 +0000
commitaea1c3bcaf278ececed0efdb5b5a2146a0947afd (patch)
tree8bf6b20da2df810ae16227f92735b700e5f08e04
parent2931c08dce3d46fdcd10ea7aa9804664d517ccc4 (diff)
Hotfix/test fix (#5827)
* Add verbosity to login * Fix tests * fix dem tests baby --------- Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
-rw-r--r--openbb_platform/extensions/charting/integration/test_charting_api.py4
-rw-r--r--openbb_platform/extensions/equity/integration/test_equity_api.py15
-rw-r--r--openbb_platform/extensions/equity/integration/test_equity_python.py14
3 files changed, 5 insertions, 28 deletions
diff --git a/openbb_platform/extensions/charting/integration/test_charting_api.py b/openbb_platform/extensions/charting/integration/test_charting_api.py
index f0001c9be55..5cdbe075d30 100644
--- a/openbb_platform/extensions/charting/integration/test_charting_api.py
+++ b/openbb_platform/extensions/charting/integration/test_charting_api.py
@@ -37,7 +37,7 @@ def get_equity_data():
return data["stocks_data"]
url = "http://0.0.0.0:8000/api/v1/equity/price/historical?symbol=AAPL&provider=fmp"
- result = requests.get(url, headers=get_headers(), timeout=20)
+ result = requests.get(url, headers=get_headers(), timeout=10)
data["stocks_data"] = result.json()["results"]
return data["stocks_data"]
@@ -62,7 +62,7 @@ def test_chart_equity_price_historical(params, headers):
query_str = get_querystring(params, [])
url = f"http://0.0.0.0:8000/api/v1/equity/price/historical?{query_str}"
- result = requests.get(url, headers=headers, timeout=10)
+ result = requests.get(url, headers=headers, timeout=40)
assert isinstance(result, requests.Response)
assert result.status_code == 200
diff --git a/openbb_platform/extensions/equity/integration/test_equity_api.py b/openbb_platform/extensions/equity/integration/test_equity_api.py
index 4d1c6ef843e..46d77a671c5 100644
--- a/openbb_platform/extensions/equity/integration/test_equity_api.py
+++ b/openbb_platform/extensions/equity/integration/test_equity_api.py
@@ -915,6 +915,7 @@ def test_equity_price_historical(params, headers):
query_str = get_querystring(params, [])
url = f"http://0.0.0.0:8000/api/v1/equity/price/historical?{query_str}"
result = requests.get(url, headers=headers, timeout=40)
+ result = requests.get(url, headers=headers, timeout=40)
assert isinstance(result, requests.Response)
assert result.status_code == 200
@@ -1335,7 +1336,7 @@ def test_equity_shorts_short_interest(params, headers):
query_str = get_querystring(params, [])
url = f"http://0.0.0.0:8000/api/v1/equity/shorts/short_interest?{query_str}"
- result = requests.get(url, headers=headers, timeout=40)
+ result = requests.get(url, headers=headers, timeout=60)
assert isinstance(result, requests.Response)
assert result.status_code == 200
@@ -1346,18 +1347,6 @@ def test_equity_shorts_short_interest(params, headers):
(
{
"symbol": "CLOV",
- "date": "2023-10-26",
- "provider": "polygon", # premium endpoint
- "limit": 1000,
- "timestamp_lte": None,
- "timestamp_gte": None,
- "timestamp_gt": None,
- "timestamp_lt": None,
- }
- ),
- (
- {
- "symbol": "CLOV",
"provider": "polygon", # premium endpoint
"timestamp_gt": "2023-10-26T15:20:00.000000000-04:00",
"timestamp_lt": "2023-10-26T15:30:00.000000000-04:00",
diff --git a/openbb_platform/extensions/equity/integration/test_equity_python.py b/openbb_platform/extensions/equity/integration/test_equity_python.py
index 3b003e628aa..d53d0603f52 100644
--- a/openbb_platform/extensions/equity/integration/test_equity_python.py
+++ b/openbb_platform/extensions/equity/integration/test_equity_python.py
@@ -1249,7 +1249,7 @@ def test_equity_shorts_short_volume(params, obb):
@pytest.mark.parametrize(
"params",
- [({"symbol": "AAPL"})],
+ [({"symbol": "AAPL", "provider": "finra"})],
)
@pytest.mark.integration
def test_equity_shorts_short_interest(params, obb):
@@ -1267,18 +1267,6 @@ def test_equity_shorts_short_interest(params, obb):
(
{
"symbol": "CLOV",
- "date": "2023-10-26",
- "provider": "polygon", # premium endpoint
- "limit": 1000,
- "timestamp_lte": None,
- "timestamp_gte": None,
- "timestamp_gt": None,
- "timestamp_lt": None,
- }
- ),
- (
- {
- "symbol": "CLOV",
"provider": "polygon", # premium endpoint
"timestamp_gt": "2023-10-26T15:20:00.000000000-04:00",
"timestamp_lt": "2023-10-26T15:30:00.000000000-04:00",