mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Suppress extraneous logging in InterfaceTest
This commit is contained in:
parent
26091cfa87
commit
f166e8d8ce
@ -14,7 +14,7 @@ from ipam.models import ASN, RIR, VLAN, VRF
|
|||||||
from netbox.api.serializers import GenericObjectSerializer
|
from netbox.api.serializers import GenericObjectSerializer
|
||||||
from tenancy.models import Tenant
|
from tenancy.models import Tenant
|
||||||
from users.models import User
|
from users.models import User
|
||||||
from utilities.testing import APITestCase, APIViewTestCases, create_test_device
|
from utilities.testing import APITestCase, APIViewTestCases, create_test_device, disable_logging
|
||||||
from virtualization.models import Cluster, ClusterType
|
from virtualization.models import Cluster, ClusterType
|
||||||
from wireless.choices import WirelessChannelChoices
|
from wireless.choices import WirelessChannelChoices
|
||||||
from wireless.models import WirelessLAN
|
from wireless.models import WirelessLAN
|
||||||
@ -1858,6 +1858,7 @@ class InterfaceTest(Mixins.ComponentTraceMixin, APIViewTestCases.APIViewTestCase
|
|||||||
|
|
||||||
# Attempt to delete only the parent interface
|
# Attempt to delete only the parent interface
|
||||||
url = self._get_detail_url(interface1)
|
url = self._get_detail_url(interface1)
|
||||||
|
with disable_logging():
|
||||||
self.client.delete(url, **self.header)
|
self.client.delete(url, **self.header)
|
||||||
self.assertEqual(device.interfaces.count(), 4) # Parent was not deleted
|
self.assertEqual(device.interfaces.count(), 4) # Parent was not deleted
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user