Skip to content

Commit

Permalink
try to fix datetime tests after precision fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Selfeer committed Jan 28, 2025
1 parent d619bc9 commit fc77d07
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ def check_datetime_column(self, precision, data):
if precision != "0":
assert (
clickhouse_values.output.strip().replace('"', "")
== f"2299-12-31 23:59:59.{'9'*int(precision)}"
== f"2299-12-31 23:59:59.{'0'*int(precision)}"
), error()
else:
assert (
clickhouse_values.output.strip().replace('"', "")
== "2299-12-31 23:59:59"
), error()
elif data[:19] == "2299-12-31 23:59:59.9":
elif data[:19] == "2299-12-31 23:59:59.0":
if precision != "0":
assert (
clickhouse_values.output.strip().replace('"', "")
== f"2299-12-31 23:59:59.{'9'*int(precision)}"
== f"2299-12-31 23:59:59.{'0'*int(precision)}"
), error()
else:
assert (
Expand Down

0 comments on commit fc77d07

Please sign in to comment.