From 5a5e8167dd97eafe3b73bafa24b8dbd2cf920aa8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 29 Mar 2016 23:19:58 +0200 Subject: [PATCH] Fix lint --- tests/helpers/fixtures.py | 2 +- tests/unit/browser/test_qt_javascript.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/helpers/fixtures.py b/tests/helpers/fixtures.py index 09d1baf1c..c87301cae 100644 --- a/tests/helpers/fixtures.py +++ b/tests/helpers/fixtures.py @@ -219,7 +219,7 @@ def qnam(qapp): @pytest.fixture def webengineview(): - """Get a QWebEngineView if QtWebEngine is available""" + """Get a QWebEngineView if QtWebEngine is available.""" if QtWebEngineWidgets is None: pytest.skip("QtWebEngine unavailable") return QtWebEngineWidgets.QWebEngineView() diff --git a/tests/unit/browser/test_qt_javascript.py b/tests/unit/browser/test_qt_javascript.py index b1745c1a5..ca40863db 100644 --- a/tests/unit/browser/test_qt_javascript.py +++ b/tests/unit/browser/test_qt_javascript.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . -"""Check how Qt behaves when trying to execute JS""" +"""Check how Qt behaves when trying to execute JS.""" import pytest @@ -49,7 +49,7 @@ class WebEngineJSChecker(QObject): @pytest.mark.parametrize('js_enabled, expected', [(True, 2.0), (False, None)]) def test_simple_js_webkit(webview, js_enabled, expected): - """With QtWebKit, evaluateJavaScript works when JS is on""" + """With QtWebKit, evaluateJavaScript works when JS is on.""" webview.settings().setAttribute(QWebSettings.JavascriptEnabled, js_enabled) result = webview.page().mainFrame().evaluateJavaScript('1 + 1') assert result == expected @@ -57,7 +57,7 @@ def test_simple_js_webkit(webview, js_enabled, expected): @pytest.mark.parametrize('js_enabled, expected', [(True, 2.0), (False, 2.0)]) def test_element_js_webkit(webview, js_enabled, expected): - """With QtWebKit, evaluateJavaScript on an element works with JS off""" + """With QtWebKit, evaluateJavaScript on an element works with JS off.""" webview.settings().setAttribute(QWebSettings.JavascriptEnabled, js_enabled) elem = webview.page().mainFrame().documentElement() result = elem.evaluateJavaScript('1 + 1') @@ -66,7 +66,7 @@ def test_element_js_webkit(webview, js_enabled, expected): @pytest.mark.parametrize('js_enabled, expected', [(True, 2.0), (False, 2.0)]) def test_simple_js_webengine(qtbot, webengineview, js_enabled, expected): - """With QtWebEngine, runJavaScript works even when JS is off""" + """With QtWebEngine, runJavaScript works even when JS is off.""" # pylint: disable=no-name-in-module # If we get there (because of the webengineview fixture) we can be certain # QtWebEngine is available