Skip to content

Commit 59e775f

Browse files
committed
test(style[format]): Normalize bookmark tests
why: Ruff's format gate rejected the focused bookmark tests after the stack was replayed onto the updated identity branch. what: - Apply Ruff's canonical wrapping to CLI and command tests.
1 parent 7935322 commit 59e775f

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎tests/test_bookmark_cli.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ def test_bookmark_cli_human_list_output(
219219
assert agentgrep.main(["bookmark", "list"]) == 0
220220

221221
assert capsys.readouterr().out == (
222-
f"thread\t{THREAD_ID}\t-\t{CREATED_AT}\n"
223-
f"record\t{RECORD_ID}\t{CONTENT_ID}\t{CREATED_AT}\n"
222+
f"thread\t{THREAD_ID}\t-\t{CREATED_AT}\nrecord\t{RECORD_ID}\t{CONTENT_ID}\t{CREATED_AT}\n"
224223
)
225224

226225

‎tests/test_bookmark_commands.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def test_bookmark_commands_are_hud_extensions() -> None:
3737
assert by_name["bookmark"].argument_hint == "[record|thread|content]"
3838
assert by_name["bookmark"].accepts_args is True
3939
assert by_name["bookmarks"].argument_hint == ""
40-
assert commands.command_menu_label(by_name["bookmark"]) == (
41-
"bookmark [record|thread|content]"
42-
)
40+
assert commands.command_menu_label(by_name["bookmark"]) == ("bookmark [record|thread|content]")
4341
assert commands.command_menu_label(by_name["bookmarks"]) == "bookmarks"
4442

4543

0 commit comments

Comments
 (0)