Просмотр исходного кода

Add missing changelog view tests

Jeremy Stretch 5 лет назад
Родитель
Сommit
1291fc4187

+ 2 - 0
netbox/dcim/tests/test_views.py

@@ -333,6 +333,7 @@ class ManufacturerTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
 # Blocked by absence of bulk import view for DeviceTypes
 class DeviceTypeTestCase(
     ViewTestCases.GetObjectViewTestCase,
+    ViewTestCases.GetObjectChangelogViewTestCase,
     ViewTestCases.CreateObjectViewTestCase,
     ViewTestCases.EditObjectViewTestCase,
     ViewTestCases.DeleteObjectViewTestCase,
@@ -1479,6 +1480,7 @@ class InventoryItemTestCase(ViewTestCases.DeviceComponentViewTestCase):
 # Blocked by lack of common creation view for cables (termination A must be initialized)
 class CableTestCase(
     ViewTestCases.GetObjectViewTestCase,
+    ViewTestCases.GetObjectChangelogViewTestCase,
     ViewTestCases.EditObjectViewTestCase,
     ViewTestCases.DeleteObjectViewTestCase,
     ViewTestCases.ListObjectsViewTestCase,

+ 1 - 0
netbox/ipam/tests/test_views.py

@@ -353,6 +353,7 @@ class VLANTestCase(ViewTestCases.PrimaryObjectViewTestCase):
 # Blocked by absence of standard creation view
 class ServiceTestCase(
     ViewTestCases.GetObjectViewTestCase,
+    ViewTestCases.GetObjectChangelogViewTestCase,
     ViewTestCases.EditObjectViewTestCase,
     ViewTestCases.DeleteObjectViewTestCase,
     ViewTestCases.ListObjectsViewTestCase,

+ 1 - 0
netbox/secrets/tests/test_views.py

@@ -40,6 +40,7 @@ class SecretRoleTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
 # TODO: Change base class to PrimaryObjectViewTestCase
 class SecretTestCase(
     ViewTestCases.GetObjectViewTestCase,
+    ViewTestCases.GetObjectChangelogViewTestCase,
     ViewTestCases.DeleteObjectViewTestCase,
     ViewTestCases.ListObjectsViewTestCase,
     ViewTestCases.BulkEditObjectsViewTestCase,