Skip to content

Commit fb19f9a

Browse files
committed
tests(waiter) Eliminate test_wait_for_pane_content_exact_match
why: - is not an exact match - test_wait_for_pane_content_contains does the CONTAINS match
1 parent 46e84d2 commit fb19f9a

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/_internal/test_waiter.py

-21
Original file line numberDiff line numberDiff line change
@@ -672,27 +672,6 @@ def test_wait_for_all_content_type_error(wait_pane: Pane) -> None:
672672
)
673673

674674

675-
def test_wait_for_pane_content_exact_match(wait_pane: Pane) -> None:
676-
"""Test waiting for content with exact match."""
677-
wait_pane.send_keys("clear", enter=True)
678-
679-
# Add a line with a predictable content
680-
test_content = "EXACT_MATCH_TEST_STRING"
681-
wait_pane.send_keys(f"echo '{test_content}'", enter=True)
682-
683-
# Instead of trying exact match on a line (which is prone to shell prompt
684-
# variations) Let's test if the content contains our string
685-
result = wait_for_pane_content(
686-
wait_pane,
687-
test_content,
688-
ContentMatchType.CONTAINS, # Use CONTAINS instead of EXACT
689-
timeout=5,
690-
)
691-
692-
assert result.success
693-
assert result.matched_content == test_content
694-
695-
696675
def test_contains_match_function() -> None:
697676
"""Test the _contains_match internal function."""
698677
content = ["line 1", "test line 2", "line 3"]

0 commit comments

Comments
 (0)