From b4f6813671134b9bcb09f01f2a18111543190945 Mon Sep 17 00:00:00 2001 From: Larry Shaffer Date: Fri, 28 Feb 2014 13:06:15 -0700 Subject: [PATCH] PEP8 cleanups for some unit test modules --- tests/src/python/qgis_local_server.py | 3 ++- tests/src/python/test_qgspallabeling_tests.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/src/python/qgis_local_server.py b/tests/src/python/qgis_local_server.py index bfc42d8f9250..eeeef12d39c9 100644 --- a/tests/src/python/qgis_local_server.py +++ b/tests/src/python/qgis_local_server.py @@ -235,7 +235,7 @@ def __init__(self, kind, exe, fcgi_bin, conf_dir, temp_dir): pass -# noinspection PyPep8Naming +# noinspection PyPep8Naming,PyShadowingNames class QgisLocalServer(object): def __init__(self, fcgi_bin): @@ -612,6 +612,7 @@ def _open_fs_item(item): else: # ? pass + # noinspection PyPep8Naming def getLocalServer(): """ Start a local test server controller that independently manages Web and diff --git a/tests/src/python/test_qgspallabeling_tests.py b/tests/src/python/test_qgspallabeling_tests.py index 0abb4629ca6c..9120e6627f72 100644 --- a/tests/src/python/test_qgspallabeling_tests.py +++ b/tests/src/python/test_qgspallabeling_tests.py @@ -25,6 +25,7 @@ svgSymbolsPath ) + # noinspection PyPep8Naming class TestPointBase(object): @@ -77,7 +78,7 @@ def test_background_rect_w_offset(self): self.lyr.shapeDraw = True self.lyr.shapeOffsetUnits = QgsPalLayerSettings.MapUnits - self.lyr.shapeOffset = QPointF(-2900.0, -450.0 ) + self.lyr.shapeOffset = QPointF(-2900.0, -450.0) self.checkTest() def test_background_svg(self): @@ -116,7 +117,7 @@ def test_background_svg_w_offset(self): self.lyr.shapeSize = QPointF(100.0, 0.0) self.lyr.shapeOffsetUnits = QgsPalLayerSettings.MapUnits - self.lyr.shapeOffset = QPointF(-2850.0, 500.0 ) + self.lyr.shapeOffset = QPointF(-2850.0, 500.0) self.checkTest() def test_partials_labels_enabled(self):