mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-07 09:52:13 +00:00
[Bug fix] - Fix integration tests (#6170)
* fix integration tests * rebuild * unittest
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Python interface integration tests for the equity extension."""
|
||||
|
||||
from datetime import time
|
||||
from datetime import date, time, timedelta
|
||||
|
||||
import pytest
|
||||
from extensions.tests.conftest import parametrize
|
||||
@@ -767,8 +767,6 @@ def test_equity_fundamental_revenue_per_segment(params, obb):
|
||||
"symbol": "IBM:US",
|
||||
"start_date": "2023-09-30",
|
||||
"end_date": "2023-12-31",
|
||||
"limit": None,
|
||||
"form_type": None,
|
||||
}
|
||||
),
|
||||
],
|
||||
@@ -878,8 +876,8 @@ def test_equity_compare_groups(params, obb):
|
||||
{
|
||||
"provider": "cboe",
|
||||
"symbol": "AAPL",
|
||||
"start_date": "2024-02-19",
|
||||
"end_date": "2024-02-20",
|
||||
"start_date": (date.today() - timedelta(days=1)).strftime("%Y-%m-%d"),
|
||||
"end_date": date.today().strftime("%Y-%m-%d"),
|
||||
"interval": "1m",
|
||||
"use_cache": False,
|
||||
}
|
||||
@@ -1572,7 +1570,7 @@ def test_equity_darkpool_otc(params, obb):
|
||||
"params",
|
||||
[
|
||||
({"provider": "fmp", "market": "euronext"}),
|
||||
({"provider": "polygon"}), # premium endpoint
|
||||
# ({"provider": "polygon"}), # premium endpoint
|
||||
],
|
||||
)
|
||||
@pytest.mark.integration
|
||||
|
||||
Reference in New Issue
Block a user