[Port] fix printing of None rotation

This commit is contained in:
Jan Petykiewicz 2026-03-30 20:25:45 -07:00
commit 548b51df47
2 changed files with 8 additions and 3 deletions

View file

@ -46,6 +46,11 @@ def test_port_measure_travel() -> None:
assert rotation == pi
def test_port_describe_any_rotation() -> None:
p = Port((0, 0), None)
assert p.describe() == "pos=(0, 0), rot=any"
def test_port_list_rename() -> None:
class MyPorts(PortList):
def __init__(self) -> None: