Skip to content

Commit 69b28e4

Browse files
committed
Fix intermittent test failure
Could fail if tables ended up in the other order.
1 parent 75073f3 commit 69b28e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_dump.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ def test_load(two_tables_db, tmpdir):
6060
# Running load a second time should error
6161
result3 = CliRunner().invoke(cli.cli, ["load", str(restore_db), str(output_dir)])
6262
assert result3.exit_code == 1
63-
assert result3.output == (
64-
"Error: table [second_table] already exists\n\n"
65-
"Use the --replace option to over-write existing tables\n"
66-
)
63+
assert (
64+
"already exists\n\nUse the --replace option to over-write existing tables\n"
65+
) in result3.output
6766
# Using --replace should work correctly
6867
(output_dir / "one_table.ndjson").write_text(
6968
'[1, "Stacey"]\n[2, "Tilda"]\n', "utf-8"

0 commit comments

Comments
 (0)