From c2473e6f9e2212eede0adad3f2662accbf819f5a Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Fri, 11 Oct 2024 13:44:13 -0400 Subject: [PATCH] Combine unit tests for Cable.type --- netbox/dcim/tests/test_filtersets.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/netbox/dcim/tests/test_filtersets.py b/netbox/dcim/tests/test_filtersets.py index ff83f1e35ce..53c7c68c7e5 100644 --- a/netbox/dcim/tests/test_filtersets.py +++ b/netbox/dcim/tests/test_filtersets.py @@ -5242,13 +5242,6 @@ def test_type(self): params = {'type': [CableTypeChoices.TYPE_CAT3, CableTypeChoices.TYPE_CAT5E]} self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4) params = {'type': [settings.FILTERS_NULL_CHOICE_VALUE]} - params = {'type__empty': 'true'} - self.assertEqual(self.filterset(params, self.queryset).qs.count(), 8) - params = {'type__empty': 'false'} - self.assertEqual(self.filterset(params, self.queryset).qs.count(), 6) - - def test_type_empty(self): - params = {'type__empty': 'true'} self.assertEqual(self.filterset(params, self.queryset).qs.count(), 8) params = {'type': [settings.FILTERS_NULL_CHOICE_VALUE, CableTypeChoices.TYPE_CAT3]} self.assertEqual(self.filterset(params, self.queryset).qs.count(), 10)