Skip to content

Commit cd6072b

Browse files
committed
Skip copy test on os'es that don't support it
1 parent d81651f commit cd6072b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_input.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ def test_apply_subcommand(chat, temp_git_repo):
9191

9292

9393
def test_copy_subcommand(chat, temp_git_repo):
94+
try:
95+
pyperclip.copy("foo")
96+
assert pyperclip.paste() == "foo"
97+
except pyperclip.PyperclipException:
98+
pytest.skip("pyperclip not available on this operating system")
99+
94100
with in_temp_directory(temp_git_repo.working_dir):
95101
# Add the patch to the chat (simulating it coming in from the LM response)
96102
chat.code_blocks = ["code block 1", "code block 2"]

0 commit comments

Comments
 (0)