mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
feat(wireless): Update CSV format for WirelessLink tests
Modifies the CSV data structure in WirelessLink test cases to include device names alongside interfaces for both terminations. Enhances readability and aligns tests with import functionality updates.
This commit is contained in:
parent
4aaa1f6606
commit
a021d29280
@ -198,10 +198,10 @@ class WirelessLinkTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|||||||
}
|
}
|
||||||
|
|
||||||
cls.csv_data = (
|
cls.csv_data = (
|
||||||
"interface_a,interface_b,status,tenant",
|
"device_a,interface_a,device_b,interface_b,status,tenant",
|
||||||
f"{interfaces[6].pk},{interfaces[7].pk},connected,{tenants[0].name}",
|
f"{interfaces[6].device.name},{interfaces[6].name},{interfaces[7].device.name},{interfaces[7].name},connected,{tenants[0].name}",
|
||||||
f"{interfaces[8].pk},{interfaces[9].pk},connected,{tenants[1].name}",
|
f"{interfaces[8].device.name},{interfaces[8].name},{interfaces[9].device.name},{interfaces[9].name},connected,{tenants[1].name}",
|
||||||
f"{interfaces[10].pk},{interfaces[11].pk},connected,{tenants[2].name}",
|
f"{interfaces[10].device.name},{interfaces[10].name},{interfaces[11].device.name},{interfaces[11].name},connected,{tenants[2].name}",
|
||||||
)
|
)
|
||||||
|
|
||||||
cls.csv_update_data = (
|
cls.csv_update_data = (
|
||||||
|
Loading…
Reference in New Issue
Block a user