Skip to content

Commit 614c821

Browse files
[QDB-18152] - Fix frequency parameter in tests to conform with Pandas 3.0
1 parent 29c2fec commit 614c821

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def _array_with_index_and_table(
695695
):
696696

697697
index = pd.Index(
698-
pd.date_range(start_date, periods=row_count, freq="S"), name="$timestamp"
698+
pd.date_range(start_date, periods=row_count, freq="s"), name="$timestamp"
699699
).to_numpy(dtype=np.dtype("datetime64[ns]"))
700700

701701
table = qdbd_connection.table(table_name)
@@ -764,7 +764,7 @@ def deduplication_mode(request):
764764
return request.param
765765

766766

767-
@pytest.fixture(params=["S"], ids=["frequency=S"])
767+
@pytest.fixture(params=["s"], ids=["frequency=s"])
768768
def frequency(request):
769769
yield request.param
770770

tests/test_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def gen_df(start_time, count, step=1, unit="D"):
9494

9595

9696
def gen_series(start_time, count):
97-
idx = pd.date_range(start_time, periods=count, freq="S")
97+
idx = pd.date_range(start_time, periods=count, freq="s")
9898

9999
return {
100100
"the_double": pd.Series(np.random.uniform(-100.0, 100.0, count), index=idx),

0 commit comments

Comments
 (0)