Skip to content

Commit

Permalink
Combine unit tests for Cable.type
Browse files Browse the repository at this point in the history
  • Loading branch information
bctiemann committed Oct 11, 2024
1 parent 240ab4e commit c2473e6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions netbox/dcim/tests/test_filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c2473e6

Please sign in to comment.