mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 16:48:16 -06:00
PEP8 line fixes
This commit is contained in:
parent
880d9f1713
commit
77af51c4b5
@ -784,7 +784,7 @@ class PowerOutletTemplate(models.Model):
|
||||
return self.name
|
||||
|
||||
def clean(self):
|
||||
|
||||
|
||||
# Rack furniture device types cannot have power outlets
|
||||
if self.device_type.is_rack_furniture:
|
||||
raise ValidationError(
|
||||
@ -1360,6 +1360,7 @@ class ConsoleServerPort(models.Model):
|
||||
device_type.manufacturer, device_type
|
||||
))
|
||||
|
||||
|
||||
#
|
||||
# Power ports
|
||||
#
|
||||
|
@ -324,7 +324,7 @@ class RackFurnitureDeviceTypeCase(TestCase):
|
||||
|
||||
|
||||
class RackFurnitureDeviceCase(TestCase):
|
||||
|
||||
|
||||
def setUp(self):
|
||||
self.manufacturer = Manufacturer.objects.create(
|
||||
name='Acme',
|
||||
|
@ -9,7 +9,6 @@ from ipam.models import IP_PROTOCOL_TCP
|
||||
from dcim.models import Manufacturer, DeviceType, Device, Site, DeviceRole
|
||||
|
||||
|
||||
|
||||
class TestPrefix(TestCase):
|
||||
|
||||
@override_settings(ENFORCE_GLOBAL_UNIQUE=False)
|
||||
|
Loading…
Reference in New Issue
Block a user