Adding tests

This commit is contained in:
Michael Lazar
2017-08-31 10:51:59 -04:00
parent 03ef3c254d
commit 7fbc02b4a0
4 changed files with 2767 additions and 3 deletions

View File

@@ -560,7 +560,7 @@ def test_copy_to_clipboard_linux(submission_page, terminal, refresh_token):
assert data.get('permalink') == content
window.addstr.assert_called_with(1, 1, b'Copied permalink to clipboard')
else:
# Nither xclip or xsel installed, this is what happens on Travis CI
# Neither xclip or xsel installed, this is what happens on Travis CI
text = b'Failed to copy permalink: External copy application not found'
window.addstr.assert_called_with(1, 1, text)
@@ -571,6 +571,6 @@ def test_copy_to_clipboard_linux(submission_page, terminal, refresh_token):
assert data.get('url_full') == content
window.addstr.assert_called_with(1, 1, b'Copied url to clipboard')
else:
# Nither xclip or xsel installed, this is what happens on Travis CI
# Neither xclip or xsel installed, this is what happens on Travis CI
text = b'Failed to copy url: External copy application not found'
window.addstr.assert_called_with(1, 1, text)