mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 19:52:52 -06:00
Fix up some PEP errors
This commit is contained in:
parent
3be9f6c4f3
commit
6e983d1542
@ -218,4 +218,3 @@ class NestedL2VPNTerminationSerializer(WritableNestedSerializer):
|
|||||||
fields = [
|
fields = [
|
||||||
'id', 'url', 'display', 'l2vpn'
|
'id', 'url', 'display', 'l2vpn'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -211,7 +211,6 @@ class L2VPNTypeChoices(ChoiceSet):
|
|||||||
(TYPE_MPLS_EVPN, 'MPLS EVPN'),
|
(TYPE_MPLS_EVPN, 'MPLS EVPN'),
|
||||||
(TYPE_PBB_EVPN, 'PBB EVPN'),
|
(TYPE_PBB_EVPN, 'PBB EVPN'),
|
||||||
))
|
))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
P2P = (
|
P2P = (
|
||||||
|
@ -612,4 +612,3 @@ class TestL2VPNTermination(TestCase):
|
|||||||
L2VPNTermination.objects.create(l2vpn=l2vpn, assigned_object=vlan)
|
L2VPNTermination.objects.create(l2vpn=l2vpn, assigned_object=vlan)
|
||||||
duplicate = L2VPNTermination(l2vpn=l2vpn, assigned_object=vlan)
|
duplicate = L2VPNTermination(l2vpn=l2vpn, assigned_object=vlan)
|
||||||
self.assertRaises(ValidationError, duplicate.clean)
|
self.assertRaises(ValidationError, duplicate.clean)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user