Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and wonder-sk committed Jan 13, 2021
1 parent 64d5878 commit 1ca091a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_provider_mssql.py
Expand Up @@ -707,13 +707,12 @@ def testExtentFromGeometryTable(self):

layerUri = QgsDataSourceUri(uri)
# Load and check if the layer is valid
loadedLayer = QgsVectorLayer(layerUri.uri(),"valid","mssql")
loadedLayer = QgsVectorLayer(layerUri.uri(), "valid", "mssql")
self.assertTrue(loadedLayer.isValid())
extent = loadedLayer.extent()
self.assertEqual(extent.toString(1),
QgsRectangle(1.0, 2.0, 4.0, 3.0).toString(1))


# Load with flag extent in geometry_columns table and check if the layer is not valid (no extent yet in geometry_columns)
layerUri.setParam('extentInGeometryColumns', '1')
loadedLayer = QgsVectorLayer(layerUri.uri(), "invalid", "mssql")
Expand Down Expand Up @@ -741,5 +740,6 @@ def testExtentFromGeometryTable(self):
self.assertEqual(extent.toString(1),
QgsRectangle(0.0, 0.5, 5.5, 6.0).toString(1))


if __name__ == '__main__':
unittest.main()

0 comments on commit 1ca091a

Please sign in to comment.