MCPcopy Create free account
hub / github.com/Mause/duckdb_engine / test_commit

Function test_commit

duckdb_engine/tests/test_basic.py:353–362  ·  view source on GitHub ↗
(session: Session, engine: Engine)

Source from the content-addressed store, hash-verified

351
352
353def test_commit(session: Session, engine: Engine) -> None:
354 importorskip("sqlalchemy", "1.4.0")
355 session.execute(text("commit;"))
356
357 InteractiveShell = importorskip("IPython.core.interactiveshell").InteractiveShell
358
359 shell = InteractiveShell()
360 assert not shell.run_line_magic("load_ext", "sql")
361 assert not shell.run_line_magic("sql", "duckdb:///:memory:")
362 assert shell.run_line_magic("sql", "select 42;") == [(42,)]
363
364
365def test_table_reflect(session: Session, engine: Engine) -> None:

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected