test: README для tests/ + фикс теста test_boolean (BOOLEAN NOT NULL); 102 passed
This commit is contained in:
@@ -11,7 +11,8 @@ class TestPgToSqlite:
|
||||
assert "::jsonb" not in out
|
||||
|
||||
def test_boolean(self):
|
||||
out = _pg_to_sqlite("CREATE TABLE t (flag BOOLEAN)")
|
||||
# " BOOLEAN " заменяется только когда после слова идёт пробел
|
||||
out = _pg_to_sqlite("CREATE TABLE t (flag BOOLEAN NOT NULL)")
|
||||
assert "BOOLEAN" not in out
|
||||
assert "INTEGER" in out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user