From adb6b3aa1df6407e83bb985042fc8f4c1643dbda Mon Sep 17 00:00:00 2001 From: Martin Hauser Date: Sun, 13 Apr 2025 11:03:26 +0200 Subject: [PATCH] fix(dcim): Correct mode filter parameter type in tests Updates the `mode` filter parameter to accept a list instead of a single value in `test_filtersets.py`. Ensures proper count assertion for accurate test behavior. --- netbox/dcim/tests/test_filtersets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/tests/test_filtersets.py b/netbox/dcim/tests/test_filtersets.py index a938e14c0..727389ef1 100644 --- a/netbox/dcim/tests/test_filtersets.py +++ b/netbox/dcim/tests/test_filtersets.py @@ -4153,7 +4153,7 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4) def test_mode(self): - params = {'mode': InterfaceModeChoices.MODE_ACCESS} + params = {'mode': [InterfaceModeChoices.MODE_ACCESS]} self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1) def test_description(self):