From 1c683076d3138d9d853a1adb16fb9e6d248d1245 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 24 Jan 2019 20:38:23 -0800 Subject: [PATCH] Sanity check test for optimize --no-vacuum --- tests/test_cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index cd1db9d..429a6fe 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -62,3 +62,6 @@ def test_optimize(db_path): assert 0 == result.exit_code size_after_optimize = os.stat(db_path).st_size assert size_after_optimize < size_before_optimize + # Sanity check that --no-vacuum doesn't throw errors: + result = CliRunner().invoke(cli.cli, ["optimize", "--no-vacuum", db_path]) + assert 0 == result.exit_code