@@ -26,23 +26,23 @@ class TestPython__repr__(unittest.TestCase):
26
26
def testQgsGeometryRepr (self ):
27
27
p = QgsPointXY (123.456 , 987.654 )
28
28
g = QgsGeometry .fromPointXY (p )
29
- self .assertTrue (g .__repr__ ().startswith ('<QgsGeometry: Point (123.456) ' ))
29
+ self .assertTrue (g .__repr__ ().startswith ('<QgsGeometry: Point (123.456' ))
30
30
31
31
def testQgsPointRepr (self ):
32
32
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' ))
34
34
35
35
def testQgsPointXYRepr (self ):
36
36
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' ))
38
38
39
39
def testQgsCircleRepr (self ):
40
40
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)>' )
42
42
43
43
def testQgsCircularstringRepr (self ):
44
44
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)>' )
46
46
47
47
def testQgsCompoundcurveRepr (self ):
48
48
cs = QgsCircularString (QgsPoint (1 , 2 ), QgsPoint (2 , 3 ), QgsPoint (3 , 4 ))
@@ -110,7 +110,7 @@ def testQgsPolygonRepr(self):
110
110
111
111
def testQgsRectangleRepr (self ):
112
112
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>' )
114
114
115
115
116
116
if __name__ == "__main__" :
0 commit comments