[Bug fix] - Fix integration tests (#6170)

* fix integration tests

* rebuild

* unittest
This commit is contained in:
montezdesousa
2024-03-06 17:40:57 +00:00
committed by GitHub
parent 65ce66e033
commit 76556dfd28
9 changed files with 45 additions and 31 deletions

View File

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