Skip to content
Permalink
Browse files
Lint
  • Loading branch information
nyalldawson committed Jan 11, 2022
1 parent d8de543 commit ac11fc791236751016fd4674e8fa3207e113e618
Showing with 4 additions and 8 deletions.
  1. +4 −8 tests/src/python/test_qgscrsdefinitionwidget.py
@@ -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()


@@ -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)
@@ -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))

0 comments on commit ac11fc7

Please sign in to comment.