fix tests
This commit is contained in:
parent
69001111da
commit
bd5274af5a
@ -27,7 +27,7 @@ import functools
|
||||
import tempfile
|
||||
|
||||
import sip
|
||||
from PyQt5.QtCore import (pyqtSlot, pyqtSignal, Qt, QObject, QUrl, QModelIndex,
|
||||
from PyQt5.QtCore import (pyqtSlot, pyqtSignal, Qt, QObject, QModelIndex,
|
||||
QTimer, QAbstractListModel)
|
||||
|
||||
from qutebrowser.commands import cmdexc, cmdutils
|
||||
|
@ -855,7 +855,7 @@ def open_file(filename, cmdline=None):
|
||||
|
||||
if cmdline is None and not override:
|
||||
log.misc.debug("Opening {} with the system application"
|
||||
.format(filename))
|
||||
.format(filename))
|
||||
url = QUrl.fromLocalFile(filename)
|
||||
QDesktopServices.openUrl(url)
|
||||
return
|
||||
|
@ -208,11 +208,11 @@ Feature: Downloading things from a website.
|
||||
When I set storage -> prompt-download-directory to true
|
||||
And I open html
|
||||
And I run :download --mhtml
|
||||
And I wait for "Asking question <qutebrowser.utils.usertypes.Question default='*' mode=<PromptMode.text: 2> text='Please enter a location for <b>http://localhost:*/html</b>' title='Save file to:'>, *" in the log
|
||||
And I wait for "Asking question <qutebrowser.utils.usertypes.Question default='*' mode=<PromptMode.download: 5> text='Please enter a location for <b>http://localhost:*/html</b>' title='Save file to:'>, *" in the log
|
||||
And I run :prompt-accept
|
||||
And I wait for "File successfully written." in the log
|
||||
And I run :download --mhtml
|
||||
And I wait for "Asking question <qutebrowser.utils.usertypes.Question default='*' mode=<PromptMode.text: 2> text='Please enter a location for <b>http://localhost:*/html</b>' title='Save file to:'>, *" in the log
|
||||
And I wait for "Asking question <qutebrowser.utils.usertypes.Question default='*' mode=<PromptMode.download: 5> text='Please enter a location for <b>http://localhost:*/html</b>' title='Save file to:'>, *" in the log
|
||||
And I run :prompt-accept
|
||||
And I wait for "Asking question <qutebrowser.utils.usertypes.Question default=None mode=<PromptMode.yesno: 1> text='<b>*</b> already exists. Overwrite?' title='Overwrite existing file?'>, *" in the log
|
||||
And I run :prompt-accept yes
|
||||
|
@ -96,7 +96,7 @@ def test_ascii_locale(request, httpbin, tmpdir, quteproc_new):
|
||||
.format(sys.executable))
|
||||
quteproc_new.wait_for(category='downloads',
|
||||
message='Download ä-issue908.bin finished')
|
||||
quteproc_new.wait_for(category='downloads',
|
||||
quteproc_new.wait_for(category='misc',
|
||||
message='Opening * with [*python*]')
|
||||
|
||||
assert len(tmpdir.listdir()) == 1
|
||||
|
Loading…
Reference in New Issue
Block a user