Skip to content

Commit d3bee8d

Browse files
committed
Fix failing tests
1 parent faec324 commit d3bee8d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/src/python/test_python_repr.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ class TestPython__repr__(unittest.TestCase):
2626
def testQgsGeometryRepr(self):
2727
p = QgsPointXY(123.456, 987.654)
2828
g = QgsGeometry.fromPointXY(p)
29-
self.assertTrue(g.__repr__().startswith('<QgsGeometry: Point (123.456)'))
29+
self.assertTrue(g.__repr__().startswith('<QgsGeometry: Point (123.456'))
3030

3131
def testQgsPointRepr(self):
3232
p = QgsPoint(123.456, 987.654, 100)
33-
self.assertTrue(p.__repr__().startswith('<QgsPoint: PointZ (123.456)'))
33+
self.assertTrue(p.__repr__().startswith('<QgsPoint: PointZ (123.456'))
3434

3535
def testQgsPointXYRepr(self):
3636
p = QgsPointXY(123.456, 987.654)
37-
self.assertTrue(p.__repr__().startswith('<QgsPointXY: POINT(123.456'))
37+
self.assertTrue(p.__repr__().startswith('<QgsPointXY: POINT(123.456'))
3838

3939
def testQgsCircleRepr(self):
4040
c = QgsCircle(QgsPoint(1, 1), 2.0)
41-
self.assertEqual(c.__repr__(), '<QgsCircle: Circle (Center: Point (1 1), Radius: 2, Azimuth: 0)>')
41+
self.assertEqual(c.__repr__(), '<QgsCircle: Circle (Center: Point (1 1), Radius: 2, Azimuth: 0)>')
4242

4343
def testQgsCircularstringRepr(self):
4444
cs = QgsCircularString(QgsPoint(1, 2), QgsPoint(2, 3), QgsPoint(3, 4))
45-
self.assertEqual(cs.__repr__(), '<QgsCompoundCurve: CompoundCurve (CircularString (1 2, 2 3, 3 4))>')
45+
self.assertEqual(cs.__repr__(), '<QgsCircularString: CircularString (1 2, 2 3, 3 4)>')
4646

4747
def testQgsCompoundcurveRepr(self):
4848
cs = QgsCircularString(QgsPoint(1, 2), QgsPoint(2, 3), QgsPoint(3, 4))
@@ -110,7 +110,7 @@ def testQgsPolygonRepr(self):
110110

111111
def testQgsRectangleRepr(self):
112112
r = QgsRectangle(1, 2, 3, 4)
113-
self.assertEqual(r.constGet().__repr__(), '<QgsRectangle: 1 2, 3 4>')
113+
self.assertEqual(r.__repr__(), '<QgsRectangle: 1 2, 3 4>')
114114

115115

116116
if __name__ == "__main__":

0 commit comments

Comments
 (0)