Fix test_disable_gpu with QtWebKit

This commit is contained in:
Florian Bruhin 2018-06-09 19:59:11 +02:00
parent 41b5fca9b7
commit 40b1be6925

View File

@ -400,9 +400,9 @@ class TestQtArgs:
assert configinit.qt_args(parsed) == expected assert configinit.qt_args(parsed) == expected
def test_disable_gpu(self, config_stub, monkeypatch, parser): def test_disable_gpu(self, config_stub, monkeypatch, parser):
config_stub.val.qt.force_software_rendering = 'chromium'
monkeypatch.setattr(configinit.objects, 'backend', monkeypatch.setattr(configinit.objects, 'backend',
usertypes.Backend.QtWebEngine) usertypes.Backend.QtWebEngine)
config_stub.val.qt.force_software_rendering = 'chromium'
parsed = parser.parse_args([]) parsed = parser.parse_args([])
expected = [sys.argv[0], '--disable-gpu'] expected = [sys.argv[0], '--disable-gpu']
assert configinit.qt_args(parsed) == expected assert configinit.qt_args(parsed) == expected