Skip to content

Commit d428864

Browse files
committed
update tests: handle Rich formatting in Android SDK path assertion by normalizing stdout to a single line
1 parent e721a27 commit d428864

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/cli/test_setup_android_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ def test_setup_android_reads_config(self, tmp_path):
5454
)
5555

5656
assert result.exit_code == 0
57-
assert "test_cache/android-sdk" in result.stdout
57+
# Remove newlines from output for path checking (Rich formatting can split paths)
58+
stdout_oneline = result.stdout.replace("\n", " ")
59+
assert "test_cache/android-sdk" in stdout_oneline
5860
assert "All required Android components are already installed" in result.stdout
5961

6062
# Should not call ensure_android_tools since everything is installed

0 commit comments

Comments
 (0)