mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Extend DeviceComponentViewTestCase to include GetObjectViewTestCase
This commit is contained in:
parent
422db03515
commit
fa71921fa5
@ -1194,10 +1194,7 @@ class PowerOutletTestCase(ViewTestCases.DeviceComponentViewTestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InterfaceTestCase(
|
class InterfaceTestCase(ViewTestCases.DeviceComponentViewTestCase):
|
||||||
ViewTestCases.GetObjectViewTestCase,
|
|
||||||
ViewTestCases.DeviceComponentViewTestCase,
|
|
||||||
):
|
|
||||||
model = Interface
|
model = Interface
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -1425,7 +1422,16 @@ class DeviceBayTestCase(ViewTestCases.DeviceComponentViewTestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InventoryItemTestCase(ViewTestCases.DeviceComponentViewTestCase):
|
# TODO: Convert to DeviceComponentViewTestCase?
|
||||||
|
class InventoryItemTestCase(
|
||||||
|
ViewTestCases.EditObjectViewTestCase,
|
||||||
|
ViewTestCases.DeleteObjectViewTestCase,
|
||||||
|
ViewTestCases.ListObjectsViewTestCase,
|
||||||
|
ViewTestCases.BulkCreateObjectsViewTestCase,
|
||||||
|
ViewTestCases.BulkImportObjectsViewTestCase,
|
||||||
|
ViewTestCases.BulkEditObjectsViewTestCase,
|
||||||
|
ViewTestCases.BulkDeleteObjectsViewTestCase
|
||||||
|
):
|
||||||
model = InventoryItem
|
model = InventoryItem
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -917,6 +917,7 @@ class ViewTestCases:
|
|||||||
maxDiff = None
|
maxDiff = None
|
||||||
|
|
||||||
class DeviceComponentViewTestCase(
|
class DeviceComponentViewTestCase(
|
||||||
|
GetObjectViewTestCase,
|
||||||
EditObjectViewTestCase,
|
EditObjectViewTestCase,
|
||||||
DeleteObjectViewTestCase,
|
DeleteObjectViewTestCase,
|
||||||
ListObjectsViewTestCase,
|
ListObjectsViewTestCase,
|
||||||
|
@ -189,10 +189,7 @@ class VirtualMachineTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class VMInterfaceTestCase(
|
class VMInterfaceTestCase(ViewTestCases.DeviceComponentViewTestCase):
|
||||||
ViewTestCases.GetObjectViewTestCase,
|
|
||||||
ViewTestCases.DeviceComponentViewTestCase,
|
|
||||||
):
|
|
||||||
model = VMInterface
|
model = VMInterface
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user