Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 11, 2022
1 parent d8de543 commit ac11fc7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/src/python/test_qgscrsdefinitionwidget.py
Expand Up @@ -11,15 +11,11 @@
__copyright__ = 'Copyright 2021, The QGIS Project'

import qgis # NOQA

from qgis.PyQt.QtTest import QSignalSpy
from qgis.gui import (QgsProjectionSelectionWidget,
QgsCrsDefinitionWidget,
QgsProjectionSelectionDialog)
from qgis.core import QgsCoordinateReferenceSystem, QgsProject, QgsProjUtils
from qgis.core import QgsCoordinateReferenceSystem
from qgis.gui import (QgsCrsDefinitionWidget)
from qgis.testing import start_app, unittest


start_app()


Expand All @@ -35,7 +31,7 @@ def testWidget(self):
self.assertEqual(w.format(), QgsCoordinateReferenceSystem.FormatWkt)

spy = QSignalSpy(w.crsChanged)
c= QgsCoordinateReferenceSystem('EPSG:3111')
c = QgsCoordinateReferenceSystem('EPSG:3111')

w.setCrs(c)
self.assertEqual(w.crs(), c)
Expand Down Expand Up @@ -75,7 +71,7 @@ def test_definition_string(self):
w = QgsCrsDefinitionWidget()

w.setFormat(QgsCoordinateReferenceSystem.FormatWkt)
c= QgsCoordinateReferenceSystem('EPSG:3111')
c = QgsCoordinateReferenceSystem('EPSG:3111')
spy = QSignalSpy(w.crsChanged)

w.setDefinitionString(c.toWkt(QgsCoordinateReferenceSystem.WKT_PREFERRED))
Expand Down

0 comments on commit ac11fc7

Please sign in to comment.