Fix typo in clipboard.py causing copy bug

Fixes #5
This commit is contained in:
John Helmert
2019-08-03 16:58:31 -05:00
parent 3480faae74
commit 17c8e9e08e
2 changed files with 2 additions and 3 deletions

View File

@@ -23,7 +23,6 @@ def test_copy_nix():
# Mock out the subprocess calls
p = mock.Mock()
p.communicate = mock.Mock()
Popen.return_value = p
copy('test', 'xsel -b -i')
@@ -31,7 +30,7 @@ def test_copy_nix():
p.communicate.assert_called_with(input='test'.encode('utf-8'))
copy('test ❤')
assert Popen.call_args[0][0] == ['xclip', '-selection', '-clipboard']
assert Popen.call_args[0][0] == ['xclip', '-selection', 'clipboard']
p.communicate.assert_called_with(input='test ❤'.encode('utf-8'))
def test_copy_darwin():