Skip to content

Commit

Permalink
Update the tests for supporting latest fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
lebr0nli committed Nov 6, 2024
1 parent 2a9f743 commit bb31917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_gep.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from conftest import GDBSession

# TODO: Maybe a better way to handle this?
FZF_POINTER = b"\xe2\x96\x8c" # ▌


def grey(b: bytes) -> bytes:
"""
Expand Down Expand Up @@ -57,7 +60,7 @@ def test_fzf_history_search(gdb_session: GDBSession) -> None:
pane_content = gdb_session.capture_pane()
assert b"> 11" in pane_content
assert b"1/3" in pane_content
assert b"> print 11" in pane_content
assert FZF_POINTER + b" print 11" in pane_content

# the selected history should be replaced in buffer
gdb_session.send_key("Enter")
Expand Down

0 comments on commit bb31917

Please sign in to comment.