Fixed tests
This commit is contained in:
@@ -46,7 +46,6 @@ def copy_linux(text):
|
||||
cmd_name = get_command_name()
|
||||
|
||||
if cmd_name is None:
|
||||
raise ProgramError("External copy application not found,\n"
|
||||
"try installing either `xsel` or `xclip`")
|
||||
raise ProgramError("External copy application not found")
|
||||
|
||||
_subprocess_copy(text, cmd_args.get(cmd_name))
|
||||
|
||||
@@ -340,7 +340,7 @@ class Page(object):
|
||||
except (ProgramError, OSError) as e:
|
||||
_logger.exception(e)
|
||||
self.term.show_notification(
|
||||
'Failed to copy permalink to clipboard\n{0}'.format(e))
|
||||
'Failed to copy permalink: {0}'.format(e))
|
||||
else:
|
||||
self.term.show_notification(
|
||||
'Copied permalink to clipboard', timeout=1)
|
||||
@@ -362,7 +362,7 @@ class Page(object):
|
||||
except (ProgramError, OSError) as e:
|
||||
_logger.exception(e)
|
||||
self.term.show_notification(
|
||||
'Failed to copy url to clipboard\n{0}'.format(e))
|
||||
'Failed to copy url: {0}'.format(e))
|
||||
else:
|
||||
self.term.show_notification(
|
||||
'Copied url to clipboard', timeout=1)
|
||||
|
||||
Reference in New Issue
Block a user