From 3312ff5aca0baed69824721521fa62f9c09a2eb9 Mon Sep 17 00:00:00 2001 From: bion howard Date: Wed, 4 Jun 2025 19:12:24 -0400 Subject: [PATCH] test: assert stdout content --- tests/test_cli.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 08e3855..19ac279 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -243,11 +243,13 @@ def test_cli_on_folder_with_evil_logging(): result = subprocess.run( " ".join(cmd), # Pass as a string if using shell=True and complex commands capture_output=True, - shell=True, + shell=True, text=True, - cwd=folder_with_evil_logging, + cwd=folder_with_evil_logging, ) print(result) assert result.returncode == 0 assert result.stderr == "" - # assert 0 \ No newline at end of file + stdout = result.stdout + rich_print(stdout) + assert "folder_with_evil_logging" in stdout or "Root" in stdout