diff options
author | Jimmy <jimmy@spalge.com> | 2022-04-30 11:46:17 +1200 |
---|---|---|
committer | Jimmy <jimmy@spalge.com> | 2022-04-30 19:30:49 +1200 |
commit | c703c18c9af12658f76e6df8350c2cd9ca5447af (patch) | |
tree | f50a41cb08a2e3288f14467cc4b20f207870e577 | |
parent | decd2e6f2e34dc17ce4415d2d2e83004bee5dd9a (diff) | |
download | qutebrowser-c703c18c9af12658f76e6df8350c2cd9ca5447af.tar.gz qutebrowser-c703c18c9af12658f76e6df8350c2cd9ca5447af.zip |
Fix lint
adjust indent of trailing lines because the leading ones got longer when
re-writing imports in 46d426a6519e1
-rw-r--r-- | tests/unit/javascript/test_js_execution.py | 1 | ||||
-rw-r--r-- | tests/unit/utils/test_qtutils.py | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/javascript/test_js_execution.py b/tests/unit/javascript/test_js_execution.py index e7212085f..ba088b1bf 100644 --- a/tests/unit/javascript/test_js_execution.py +++ b/tests/unit/javascript/test_js_execution.py @@ -56,7 +56,6 @@ def test_element_js_webkit(webview, js_enabled, expected): def test_simple_js_webengine(qtbot, webengineview, qapp, js_enabled, world, expected): """With QtWebEngine, runJavaScript works even when JS is off.""" - assert world in [QtWebEngineWidgets.QWebEngineScript.MainWorld, QtWebEngineWidgets.QWebEngineScript.ApplicationWorld, QtWebEngineWidgets.QWebEngineScript.UserWorld] diff --git a/tests/unit/utils/test_qtutils.py b/tests/unit/utils/test_qtutils.py index f868e70f0..8eaa58c75 100644 --- a/tests/unit/utils/test_qtutils.py +++ b/tests/unit/utils/test_qtutils.py @@ -206,11 +206,11 @@ def test_ensure_valid(obj, raising, exc_reason, exc_str): @pytest.mark.parametrize('status, raising, message', [ (QtCore.QDataStream.Ok, False, None), (QtCore.QDataStream.ReadPastEnd, True, "The data stream has read past the end of " - "the data in the underlying device."), + "the data in the underlying device."), (QtCore.QDataStream.ReadCorruptData, True, "The data stream has read corrupt " - "data."), + "data."), (QtCore.QDataStream.WriteFailed, True, "The data stream cannot write to the " - "underlying device."), + "underlying device."), ]) def test_check_qdatastream(status, raising, message): """Test check_qdatastream. |