def test_translate_default_numbers_from_mysql_to_sqlite( self, column_default, sqlite_default_translation, column_type): assert (MySQLtoSQLite._translate_default_from_mysql_to_sqlite( column_default, column_type) == sqlite_default_translation)
def test_translate_default_booleans_from_mysql_to_sqlite( self, mocker, column_default, sqlite_default_translation, sqlite_version): mocker.patch.object(sqlite3, "sqlite_version", sqlite_version) assert (MySQLtoSQLite._translate_default_from_mysql_to_sqlite( column_default, "BOOLEAN") == sqlite_default_translation)