[Port] fix printing of None rotation
This commit is contained in:
parent
06f8611a90
commit
548b51df47
2 changed files with 8 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue