Skip to content

Commit 3f33614

Browse files
committed
✅ refactor: reformat unit tests for _translate_default_from_mysql_to_sqlite to improve readability
1 parent f014d72 commit 3f33614

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/unit/test_transporter.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,12 @@ def test_translate_default_from_mysql_to_sqlite_curdate(self) -> None:
238238

239239
def test_translate_default_from_mysql_to_sqlite_current_timestamp_with_parentheses(self) -> None:
240240
"""Test _translate_default_from_mysql_to_sqlite with current_timestamp()."""
241-
assert MySQLtoSQLite._translate_default_from_mysql_to_sqlite("current_timestamp()") == "DEFAULT CURRENT_TIMESTAMP"
242-
assert MySQLtoSQLite._translate_default_from_mysql_to_sqlite("CURRENT_TIMESTAMP()") == "DEFAULT CURRENT_TIMESTAMP"
241+
assert (
242+
MySQLtoSQLite._translate_default_from_mysql_to_sqlite("current_timestamp()") == "DEFAULT CURRENT_TIMESTAMP"
243+
)
244+
assert (
245+
MySQLtoSQLite._translate_default_from_mysql_to_sqlite("CURRENT_TIMESTAMP()") == "DEFAULT CURRENT_TIMESTAMP"
246+
)
243247

244248
def test_translate_default_from_mysql_to_sqlite_now(self) -> None:
245249
"""Test _translate_default_from_mysql_to_sqlite with now()."""

0 commit comments

Comments
 (0)