mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fix tests
This commit is contained in:
parent
4675b0cbfb
commit
d1af212b0d
@ -1,4 +1,5 @@
|
||||
from django.test import TestCase
|
||||
from django.conf import settings
|
||||
|
||||
from circuits.models import Circuit, CircuitTermination, CircuitType, Provider
|
||||
from dcim.choices import *
|
||||
@ -5247,9 +5248,9 @@ class CableTestCase(TestCase, ChangeLoggedFilterSetTests):
|
||||
def test_type(self):
|
||||
params = {'type': [CableTypeChoices.TYPE_CAT3, CableTypeChoices.TYPE_CAT5E]}
|
||||
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
|
||||
params = {'type': [CableTypeChoices.TYPE_EMPTY]}
|
||||
params = {'type': [settings.FILTERS_NULL_CHOICE_VALUE]}
|
||||
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 8)
|
||||
params = {'type': [CableTypeChoices.TYPE_EMPTY, CableTypeChoices.TYPE_CAT3]}
|
||||
params = {'type': [settings.FILTERS_NULL_CHOICE_VALUE, CableTypeChoices.TYPE_CAT3]}
|
||||
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 10)
|
||||
|
||||
def test_status(self):
|
||||
|
Loading…
Reference in New Issue
Block a user