Skip to content

Commit 395dffb

Browse files
author
Ritwick DSouza
committed
[raspbian] isort and flake8 errors
1 parent da2ccbf commit 395dffb

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

netjsonconfig/backends/raspbian/converters/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
from .dnsservers import DnsServers
66
from .dnssearch import DnsSearch
77

8-
__all__ = ['General', 'Interface', 'Ntp', 'Wireless',
9-
'DnsServers', 'DnsSearch']
8+
__all__ = ['General', 'Interfaces', 'Ntp', 'Wireless',
9+
'DnsServers', 'DnsSearch']

netjsonconfig/backends/raspbian/converters/interfaces.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from ipaddress import IPv4Interface
2+
13
from ....utils import get_copy
24
from .base import RaspbianConverter
3-
from ipaddress import IPv4Interface
45

56

67
class Interfaces(RaspbianConverter):

netjsonconfig/backends/raspbian/raspbian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from . import converters
2-
from .renderer import *
32
from ..base.backend import BaseBackend
3+
from .renderer import Commands, Hostapd, Hostname, Interfaces, Ntp, Resolv
44
from .schema import schema
55

66

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from ...schema import schema as default_schema
2-
from ...schema import DEFAULT_FILE_MODE
32
from ...utils import merge_config
43

54
schema = merge_config(default_schema, {})

tests/raspbian/test_hostapd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from unittest import skip
2+
33
from netjsonconfig import Raspbian
44
from netjsonconfig.utils import _TabsMixin
55

tests/raspbian/test_interfaces.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_multiple_ip(self):
219219

220220
def test_mtu(self):
221221
o = Raspbian({
222-
"interfaces": [
222+
"interfaces": [
223223
{
224224
"mtu": 1500,
225225
"name": "eth1",
@@ -245,18 +245,18 @@ def test_mtu(self):
245245
def test_mac(self):
246246
o = Raspbian({
247247
"interfaces": [
248-
{
249-
"name": "eth1",
250-
"addresses": [
251-
{
252-
"family": "ipv4",
253-
"proto": "dhcp"
254-
}
255-
],
256-
"type": "ethernet",
257-
"mac": "52:54:00:56:46:c0"
258-
}
259-
],
248+
{
249+
"name": "eth1",
250+
"addresses": [
251+
{
252+
"family": "ipv4",
253+
"proto": "dhcp"
254+
}
255+
],
256+
"type": "ethernet",
257+
"mac": "52:54:00:56:46:c0"
258+
}
259+
],
260260
})
261261

262262
expected = '''config: /etc/network/interfaces

0 commit comments

Comments
 (0)