mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 00:36:11 -06:00
7961 update tests
This commit is contained in:
parent
755c18dc10
commit
bfe485cac9
@ -1893,10 +1893,10 @@ class ModuleTestCase(
|
||||
)
|
||||
|
||||
cls.csv_update_data = (
|
||||
"module_type",
|
||||
"Module Type 2",
|
||||
"Module Type 3",
|
||||
"Module Type 1",
|
||||
"serial",
|
||||
"Serial 2",
|
||||
"Serial 3",
|
||||
"Serial 1",
|
||||
)
|
||||
|
||||
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
|
||||
@ -2080,7 +2080,7 @@ class ConsoleServerPortTestCase(ViewTestCases.DeviceComponentViewTestCase):
|
||||
"Device 1,Console Server Port 6",
|
||||
)
|
||||
|
||||
cls.csv_data = (
|
||||
cls.csv_update_data = (
|
||||
"name,description",
|
||||
"Console Server Port 7,New description 7",
|
||||
"Console Server Port 8,New description 8",
|
||||
|
@ -47,7 +47,7 @@ class CustomFieldTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
||||
'field7,Field 7,object,dcim.site,dcim.region,100,exact,,,,,read-write',
|
||||
)
|
||||
|
||||
cls.csv_data = (
|
||||
cls.csv_update_data = (
|
||||
'name,label',
|
||||
'field8,Field 8',
|
||||
'field9,Field 9',
|
||||
|
@ -646,7 +646,7 @@ class VLANGroupTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
|
||||
f"VLAN Group 6,vlan-group-6,dcim.site,{sites[1].pk},Sixth VLAN group",
|
||||
)
|
||||
|
||||
cls.csv_data = (
|
||||
cls.csv_update_data = (
|
||||
f"name,description",
|
||||
f"VLAN Group 7,Fourth VLAN group7",
|
||||
f"VLAN Group 8,Fifth VLAN group8",
|
||||
|
@ -150,6 +150,13 @@ class WirelessLinkTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
||||
f"{interfaces[10].pk},{interfaces[11].pk},connected,{tenants[2].name}",
|
||||
)
|
||||
|
||||
cls.csv_update_data = (
|
||||
f"status",
|
||||
f"{LinkStatusChoices.STATUS_PLANNED}",
|
||||
f"{LinkStatusChoices.STATUS_PLANNED}",
|
||||
f"{LinkStatusChoices.STATUS_PLANNED}",
|
||||
)
|
||||
|
||||
cls.bulk_edit_data = {
|
||||
'status': LinkStatusChoices.STATUS_PLANNED,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user