test: README для tests/ + фикс теста test_boolean (BOOLEAN NOT NULL); 102 passed

This commit is contained in:
“Naeel”
2026-08-26 16:50:01 +03:00
parent 8f8fabf959
commit 3b259cf160
2 changed files with 45 additions and 1 deletions
+2 -1
View File
@@ -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