Skip to content

Commit

Permalink
Skip copy test on os'es that don't support it
Browse files Browse the repository at this point in the history
  • Loading branch information
TechNickAI committed Aug 21, 2023
1 parent d81651f commit cd6072b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ def test_apply_subcommand(chat, temp_git_repo):


def test_copy_subcommand(chat, temp_git_repo):
try:
pyperclip.copy("foo")
assert pyperclip.paste() == "foo"
except pyperclip.PyperclipException:
pytest.skip("pyperclip not available on this operating system")

with in_temp_directory(temp_git_repo.working_dir):
# Add the patch to the chat (simulating it coming in from the LM response)
chat.code_blocks = ["code block 1", "code block 2"]
Expand Down

0 comments on commit cd6072b

Please sign in to comment.