Fix test_restore_ssl_directory with HA CLI in interactive PTY (#3239)

The test was missing --no-progress flag, which only manifested after
merging #3238 - causing the CLI to run in an interactive pseudotty.
This commit is contained in:
Jan Čermák 2024-03-12 14:55:10 +01:00 committed by GitHub
parent fe1978f98f
commit 122dd1c288
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -187,6 +187,6 @@ def test_restore_backup(shell_json, stash):
@pytest.mark.dependency(depends=["test_create_backup"])
def test_restore_ssl_directory(shell_json, stash):
result = shell_json(f"ha backups restore {stash.get('slug')} --folders ssl --raw-json")
result = shell_json(f"ha backups restore {stash.get('slug')} --folders ssl --no-progress --raw-json")
assert result.get("result") == "ok", f"Backup restore failed: {result}"
logger.info("Backup restore result: %s", result)