tests(controller,port): short_name finishes successfully when port name is None

This commit is contained in:
Mark Paronyan 2026-02-28 21:45:08 +03:00
parent 729eb43115
commit 0da1a6639a
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8

View File

@ -132,6 +132,13 @@ def test_list_ports_port_name_format(node):
assert node.__json__()["ports"][1]["name"] == "eth0/0"
def test_short_name_none():
"""
Test short_name does not raise exception when name is None
"""
assert EthernetPort(None, 0, 0, 0).short_name is None
def test_list_ports_adapters(node):
"""
List port using adapters properties