Skip to content

Commit d749429

Browse files
committed
[airos] make flake happier
1 parent 0644739 commit d749429

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

netjsonconfig/backends/airos/ebtables.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import copy
22

3-
from .interface import protocol, radio
3+
from .interface import radio
44

55

66
_base = {
@@ -9,6 +9,7 @@
99
},
1010
}
1111

12+
1213
def encrypted(interface):
1314
"""
1415
Returns the configuration for ``ebtables.sys`` when encrypted

tests/airos/test_interface.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
from unittest import TestCase
2-
from netjsonconfig.backends.airos.interface import (autonegotiation, bridge,
3-
bssid, encryption,
4-
flowcontrol, hidden_ssid,
5-
mode, protocol, psk, radio,
6-
split_cidr, ssid, stp, vlan,
7-
wireless)
2+
3+
from netjsonconfig.backends.airos.interface import (autonegotiation, bssid, encryption,
4+
flowcontrol, hidden_ssid, stp)
5+
86

97
class InterfaceTest(TestCase):
108
def test_autonegotiation(self):
@@ -156,4 +154,3 @@ def test_stp(self):
156154
self.assertEqual(stp(enabled), 'enabled')
157155
self.assertEqual(stp(disabled), 'disabled')
158156
self.assertEqual(stp(missing), 'disabled')
159-

tests/airos/test_route.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from unittest import skip
2-
31
from .mock import ConverterTest, RouteAirOs
42

53

0 commit comments

Comments
 (0)