Skip to content

Commit 604b533

Browse files
committed
fixup! tests(cli): Add integration tests for color output
1 parent 05ee4e3 commit 604b533

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/cli/test_cli_colors_integration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
import sys
6+
import typing as t
67

78
import pytest
89

@@ -125,7 +126,7 @@ def test_all_semantic_methods_respect_enabled_state(
125126
self, colors_enabled: Colors
126127
) -> None:
127128
"""Verify all semantic color methods include ANSI codes when enabled."""
128-
methods = [
129+
methods: list[t.Callable[..., str]] = [
129130
colors_enabled.success,
130131
colors_enabled.error,
131132
colors_enabled.warning,
@@ -141,7 +142,7 @@ def test_all_semantic_methods_respect_disabled_state(
141142
self, colors_disabled: Colors
142143
) -> None:
143144
"""Verify all semantic color methods return plain text when disabled."""
144-
methods = [
145+
methods: list[t.Callable[..., str]] = [
145146
colors_disabled.success,
146147
colors_disabled.error,
147148
colors_disabled.warning,

0 commit comments

Comments
 (0)