[IMP] Improve test checking database exist
This commit is contained in:
parent
ff56b47a94
commit
c08accffac
|
|
@ -140,6 +140,20 @@ def test_cli_dumpdb_failure(mocker):
|
||||||
expect_success=False,
|
expect_success=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# With a non-existing database
|
||||||
|
cli_runner_invoke(
|
||||||
|
[
|
||||||
|
"--log-level=DEBUG",
|
||||||
|
"dumpdb",
|
||||||
|
"--database=database_test_cli___dumpdb_non_existing",
|
||||||
|
f"--database-path={database_path}",
|
||||||
|
f"--database-format={formats[0]}",
|
||||||
|
f"--filestore-path={filestore_path}",
|
||||||
|
f"--filestore-format={formats[1]}",
|
||||||
|
],
|
||||||
|
expect_success=False,
|
||||||
|
)
|
||||||
|
|
||||||
# Cleanup files
|
# Cleanup files
|
||||||
if database_path.is_dir():
|
if database_path.is_dir():
|
||||||
shutil.rmtree(database_path)
|
shutil.rmtree(database_path)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user