Skip to content

Commit c3279ee

Browse files
committed
Add a note about version added for new functions in testing module
1 parent 191b0d4 commit c3279ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

python/testing/__init__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ def assertFilesEqual(self, filepath_expected, filepath_result):
199199
def checkGeometriesEqual(self, geom0, geom1, geom0_id, geom1_id, use_asserts=False, precision=14, topo_equal_check=False):
200200
""" Checks whether two geometries are the same - using either a strict check of coordinates (up to given precision)
201201
or by using topological equality (where e.g. a polygon with clockwise is equal to a polygon with counter-clockwise
202-
order of vertices) """
202+
order of vertices)
203+
.. versionadded:: 3.2
204+
"""
203205
if not geom0.isNull() and not geom1.isNull():
204206
if topo_equal_check:
205207
equal = geom0.isGeosEqual(geom1)
@@ -225,7 +227,9 @@ def checkGeometriesEqual(self, geom0, geom1, geom0_id, geom1_id, use_asserts=Fal
225227
return equal
226228

227229
def checkAttributesEqual(self, feat0, feat1, fields_expected, use_asserts, compare):
228-
""" Checks whether attributes of two features are the same """
230+
""" Checks whether attributes of two features are the same
231+
.. versionadded:: 3.2
232+
"""
229233

230234
for attr_expected, field_expected in zip(feat0.attributes(), fields_expected.toList()):
231235
try:

0 commit comments

Comments
 (0)