Skip to content

Commit b091077

Browse files
committed
fmt
1 parent e271dac commit b091077

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

bindings/python/tests/blocking/steps/binding.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,20 @@ def _(context):
157157
assert row.values()[0] == exp, f"Tuple: {row.values()}"
158158

159159
context.conn.exec("set timezone='UTC'")
160-
row = context.conn.query_row(f"settings(timezone='{tz}') select to_datetime('2024-04-16 12:34:56.789')")
160+
row = context.conn.query_row(
161+
f"settings(timezone='{tz}') select to_datetime('2024-04-16 12:34:56.789')"
162+
)
161163
exp = datetime(2024, 4, 16, 12, 34, 56, 789000, tzinfo=tz_expected)
162164
assert row.values()[0] == exp, f"Tuple: {row.values()}"
163165

164166
tz_expected = timezone(timedelta(hours=6))
165-
row = context.conn.query_row(f"settings(timezone='{tz}') select to_timestamp_tz('2024-04-16 12:34:56.789 +0600')")
167+
row = context.conn.query_row(
168+
f"settings(timezone='{tz}') select to_timestamp_tz('2024-04-16 12:34:56.789 +0600')"
169+
)
166170
exp = datetime(2024, 4, 16, 12, 34, 56, 789000, tzinfo=tz_expected)
167171
exp_bug = datetime(2024, 4, 16, 18, 34, 56, 789000, tzinfo=tz_expected)
168-
assert row.values()[0] in (exp, exp_bug ), f"Tuple: {row.values()[0]} {exp}"
172+
assert row.values()[0] in (exp, exp_bug), f"Tuple: {row.values()[0]} {exp}"
173+
169174

170175
@then("Select numbers should iterate all rows")
171176
def _(context):

sql/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ chrono = { workspace = true }
2222
chrono-tz = { workspace = true }
2323
databend-client = { workspace = true }
2424
jsonb = { workspace = true }
25-
jiff = "0.2.10"
2625
tokio-stream = { workspace = true }
2726
tonic = { workspace = true, optional = true }
2827

tests/nox/noxfile.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import nox
1616
import os
1717

18+
1819
def generate_params1():
1920
for db_version in ["1.2.803", "1.2.791"]:
2021
for body_format in ["arrow", "json"]:
@@ -23,6 +24,7 @@ def generate_params1():
2324
continue
2425
yield nox.param(db_version, body_format)
2526

27+
2628
@nox.session
2729
@nox.parametrize(["db_version", "body_format"], generate_params1())
2830
def new_driver_with_old_servers(session, db_version, body_format):
@@ -40,7 +42,7 @@ def new_driver_with_old_servers(session, db_version, body_format):
4042
"DATABEND_QUERY_VERSION": query_version,
4143
"DATABEND_META_VERSION": query_version,
4244
"DB_VERSION": db_version,
43-
"BODY_FORMAT": body_format
45+
"BODY_FORMAT": body_format,
4446
}
4547
session.run("make", "test-bindings-python", env=env)
4648
session.run("make", "down")
@@ -61,9 +63,6 @@ def new_test_with_old_drivers(session, driver_version, body_format):
6163
session.install("behave")
6264
session.install(f"databend-driver=={driver_version}")
6365
with session.chdir(".."):
64-
env = {
65-
"DRIVER_VERSION": driver_version,
66-
"BODY_FORMAT": body_format
67-
}
66+
env = {"DRIVER_VERSION": driver_version, "BODY_FORMAT": body_format}
6867
session.run("make", "test-bindings-python", env=env)
6968
session.run("make", "down")

0 commit comments

Comments
 (0)