1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2025-12-20 02:18:37 +00:00

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

View File

@@ -187,6 +187,6 @@ def test_restore_backup(shell_json, stash):
@pytest.mark.dependency(depends=["test_create_backup"]) @pytest.mark.dependency(depends=["test_create_backup"])
def test_restore_ssl_directory(shell_json, stash): 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}" assert result.get("result") == "ok", f"Backup restore failed: {result}"
logger.info("Backup restore result: %s", result) logger.info("Backup restore result: %s", result)