Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
remove fstrings for python2.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab authored and heitzmann committed May 11, 2022
1 parent b9b8044 commit 06b9238
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/labels_rotated.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_add_label_rotation_x_reflection():
label_rotation = label2.rotation
label_x_reflection = label2.x_reflection

assert label_rotation == rotation, f"{label_rotation} != {rotation}"
assert label_x_reflection == True, f"{label_x_reflection} needs to be True"
assert label_rotation == rotation, [label_rotation, rotation]
assert label_x_reflection == True, label_x_reflection
assert label2.position[0] == dx
assert label2.position[1] == dy

Expand All @@ -54,7 +54,7 @@ def test_add_label_rotation():
c2.add(c1ref)

label_rotation = c2.get_labels(set_transform=True)[0].rotation
assert label_rotation == rotation, f"{label_rotation} != {rotation}"
assert label_rotation == rotation, [label_rotation, rotation]


if __name__ == "__main__":
Expand All @@ -78,8 +78,8 @@ def test_add_label_rotation():
label_rotation = label2.rotation
label_x_reflection = label2.x_reflection

assert label_rotation == rotation, f"{label_rotation} != {rotation}"
assert label_x_reflection == True, f"{label_x_reflection} needs to be True"
assert label_rotation == rotation, [label_rotation, rotation]
assert label_x_reflection == True, label_x_reflection
assert label2.position[0] == dx
assert label2.position[1] == dy

Expand Down

0 comments on commit 06b9238

Please sign in to comment.