mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-28 03:44:31 +02:00
sqlite-utils dump command, closes #274
This commit is contained in:
parent
fe1562e8a6
commit
ca2b26130f
3 changed files with 35 additions and 0 deletions
|
|
@ -502,6 +502,13 @@ def test_vacuum(db_path):
|
|||
assert 0 == result.exit_code
|
||||
|
||||
|
||||
def test_dump(db_path):
|
||||
result = CliRunner().invoke(cli.cli, ["dump", db_path])
|
||||
assert result.exit_code == 0
|
||||
assert result.output.startswith("BEGIN TRANSACTION;")
|
||||
assert result.output.strip().endswith("COMMIT;")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("tables", ([], ["Gosh"], ["Gosh2"]))
|
||||
def test_optimize(db_path, tables):
|
||||
db = Database(db_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue