openenv-secaudit / tasks /medium /task_09 /tests /test_migrate.py
dexter-2k's picture
Upload folder using huggingface_hub
da0a862 verified
Raw
History Blame Contribute Delete
206 Bytes
from pathlib import Path
def test_migration_keeps_table_creation():
sql = Path("migrate.sql").read_text(encoding="utf-8")
assert "CREATE TABLE widgets" in sql
assert sql.strip().endswith(";")