Skip to content

Commit 157f623

Browse files
committed
[tests] Linting: Remove trailing whitespaces
1 parent a44537b commit 157f623

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

tests/test_attributeKeyValues.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_initialization(self):
6161

6262
# Check attribute pairs empty
6363
assert nodeA.keyableBool.isDefault
64-
assert nodeA.keyableInt.isDefault
64+
assert nodeA.keyableInt.isDefault
6565
assert nodeA.keyableFloat.isDefault
6666

6767
# Check attribute description value
@@ -182,7 +182,7 @@ def test_multipleKeys(self):
182182
assert nodeA.keyableFloat.keyValues.hasKey("2") == True
183183

184184
# Check attributes values at key "0", should be default value
185-
assert nodeA.keyableBool.keyValues.getValueAtKeyOrDefault("0") == False
185+
assert nodeA.keyableBool.keyValues.getValueAtKeyOrDefault("0") == False
186186
assert nodeA.keyableInt.keyValues.getValueAtKeyOrDefault("0") == 1
187187
assert nodeA.keyableFloat.keyValues.getValueAtKeyOrDefault("0") == 1.1
188188

tests/test_attributeShape.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def test_shapeList(self):
368368
# Reset shape lists
369369
node.pointList.resetToDefaultValue()
370370
node.keyablePointList.resetToDefaultValue()
371-
371+
372372
# Check number of shapes, should be 0 (no shape)
373373
assert len(node.pointList) == 0
374374
assert len(node.keyablePointList) == 0
@@ -447,45 +447,45 @@ def test_exportDict(self):
447447
assert node.line.geometry.getValueAsDict() == {"a" : {"x" : -1, "y" : -1}, "b" : {"x" : -1, "y" : -1}}
448448
assert node.rectangle.geometry.getValueAsDict() == {"center" : {"x" : -1, "y" : -1}, "size" : {"width" : -1, "height" : -1}}
449449
assert node.circle.geometry.getValueAsDict() == {"center" : {"x" : -1, "y" : -1}, "radius" : -1}
450-
assert node.point.getShapeAsDict() == {"name" : node.point.rootName,
451-
"type" : node.point.type,
450+
assert node.point.getShapeAsDict() == {"name" : node.point.rootName,
451+
"type" : node.point.type,
452452
"properties" : {"color" : node.point.userColor, "x" : -1, "y" : -1}}
453-
assert node.line.getShapeAsDict() == {"name" : node.line.rootName,
454-
"type" : node.line.type,
453+
assert node.line.getShapeAsDict() == {"name" : node.line.rootName,
454+
"type" : node.line.type,
455455
"properties" : {"color" : node.line.userColor, "a" : {"x" : -1, "y" : -1}, "b" : {"x" : -1, "y" : -1}}}
456-
assert node.rectangle.getShapeAsDict() == {"name" : node.rectangle.rootName,
457-
"type" : node.rectangle.type,
456+
assert node.rectangle.getShapeAsDict() == {"name" : node.rectangle.rootName,
457+
"type" : node.rectangle.type,
458458
"properties" : {"color" : node.rectangle.userColor, "center" : {"x" : -1, "y" : -1}, "size" : {"width" : -1, "height" : -1}}}
459-
assert node.circle.getShapeAsDict() == {"name" : node.circle.rootName,
460-
"type" : node.circle.type,
459+
assert node.circle.getShapeAsDict() == {"name" : node.circle.rootName,
460+
"type" : node.circle.type,
461461
"properties" : {"color" : node.circle.userColor, "center" : {"x" : -1, "y" : -1}, "radius" : -1}}
462462
# Keyable shape attribute should be empty dict
463463
assert node.keyablePoint.geometry.getValueAsDict() == {}
464464
assert node.keyableLine.geometry.getValueAsDict() == {}
465465
assert node.keyableRectangle.geometry.getValueAsDict() == {}
466466
assert node.keyableCircle.geometry.getValueAsDict() == {}
467-
assert node.keyablePoint.getShapeAsDict() == {"name" : node.keyablePoint.rootName,
468-
"type" : node.keyablePoint.type,
467+
assert node.keyablePoint.getShapeAsDict() == {"name" : node.keyablePoint.rootName,
468+
"type" : node.keyablePoint.type,
469469
"properties" : {"color" : node.keyablePoint.userColor},
470470
"observations" : {}}
471-
assert node.keyableLine.getShapeAsDict() == {"name" : node.keyableLine.rootName,
472-
"type" : node.keyableLine.type,
471+
assert node.keyableLine.getShapeAsDict() == {"name" : node.keyableLine.rootName,
472+
"type" : node.keyableLine.type,
473473
"properties" : {"color" : node.keyableLine.userColor},
474474
"observations" : {}}
475-
assert node.keyableRectangle.getShapeAsDict() == {"name" : node.keyableRectangle.rootName,
476-
"type" : node.keyableRectangle.type,
475+
assert node.keyableRectangle.getShapeAsDict() == {"name" : node.keyableRectangle.rootName,
476+
"type" : node.keyableRectangle.type,
477477
"properties" : {"color" : node.keyableRectangle.userColor},
478478
"observations" : {}}
479-
assert node.keyableCircle.getShapeAsDict() == {"name" : node.keyableCircle.rootName,
480-
"type" : node.keyableCircle.type,
479+
assert node.keyableCircle.getShapeAsDict() == {"name" : node.keyableCircle.rootName,
480+
"type" : node.keyableCircle.type,
481481
"properties" : {"color" : node.keyableCircle.userColor},
482482
"observations" : {}}
483483

484484
# Add one shape with an observation
485485
node.pointList.append(pointValue)
486486
node.keyablePointList.append(keyablePointValue)
487487

488-
# Add one observation
488+
# Add one observation
489489
node.point.geometry.setObservation("0", observationPoint)
490490
node.keyablePoint.geometry.setObservation("0", observationPoint)
491491
node.line.geometry.setObservation("0", observationLine)

0 commit comments

Comments
 (0)