From c703c18c9af12658f76e6df8350c2cd9ca5447af Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sat, 30 Apr 2022 11:46:17 +1200 Subject: Fix lint adjust indent of trailing lines because the leading ones got longer when re-writing imports in 46d426a6519e1 --- tests/unit/javascript/test_js_execution.py | 1 - 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. -- cgit v1.2.3-54-g00ecf