From 25eca863522ad8c37770782b5a86a3591093e17e Mon Sep 17 00:00:00 2001 From: danix Date: Thu, 11 Jun 2026 10:51:15 +0200 Subject: feat: render help with Pango markup in qarma qarma --info supports Pango markup; bold headers + monospace command column. Stdout path stays plain text (no tags leak to terminal). Co-Authored-By: Claude Opus 4.8 --- tests/wallp.bats | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests') diff --git a/tests/wallp.bats b/tests/wallp.bats index e809c13..b78dc35 100644 --- a/tests/wallp.bats +++ b/tests/wallp.bats @@ -278,6 +278,26 @@ EOF [[ "$output" == *"Usage"* ]] } +@test "stdout help has no pango markup tags" { + unset WAYLAND_DISPLAY + run show_help + [[ "$output" != *""* ]] + [[ "$output" != *""* ]] + [[ "$output" == *"Usage"* ]] +} + +@test "qarma help uses pango markup" { + export WAYLAND_DISPLAY="wayland-0" + cat > "$STUB_DIR/qarma" <> "$TMP_HOME/calls.log" +exit 0 +EOF + chmod +x "$STUB_DIR/qarma" + show_help + grep -q "" "$HOME/calls.log" +} + @test "bootstrap on missing conf exits zero without setting wallpaper" { unset WAYLAND_DISPLAY run main --restore -- cgit v1.2.3