Disable mhtml tests for Qt 5.6
This commit is contained in:
parent
abded2470a
commit
f718b66c48
@ -197,6 +197,7 @@ Feature: Downloading things from a website.
|
||||
|
||||
## mhtml downloads
|
||||
|
||||
@qt>=5.8
|
||||
Scenario: Downloading as mhtml is available
|
||||
When I open data/title.html
|
||||
And I run :download --mhtml
|
||||
@ -226,6 +227,7 @@ Feature: Downloading things from a website.
|
||||
And I wait for "File successfully written." in the log
|
||||
Then the downloaded file Test title.mhtml should exist
|
||||
|
||||
@qt>=5.8
|
||||
Scenario: Opening a mhtml download directly
|
||||
When I set storage -> prompt-download-directory to true
|
||||
And I open html
|
||||
|
@ -26,6 +26,8 @@ import collections
|
||||
|
||||
import pytest
|
||||
|
||||
from qutebrowser.utils import qtutils
|
||||
|
||||
|
||||
def collect_tests():
|
||||
basedir = os.path.dirname(__file__)
|
||||
@ -104,6 +106,9 @@ def _test_mhtml_requests(test_dir, test_path, httpbin):
|
||||
|
||||
@pytest.mark.parametrize('test_name', collect_tests())
|
||||
def test_mhtml(request, test_name, download_dir, quteproc, httpbin):
|
||||
if not qtutils.version_check('5.7'):
|
||||
pytest.skip("mhtml is unsupported with Qt < 5.7")
|
||||
|
||||
quteproc.set_setting('storage', 'download-directory',
|
||||
download_dir.location)
|
||||
quteproc.set_setting('storage', 'prompt-download-directory', 'false')
|
||||
|
Loading…
Reference in New Issue
Block a user