Skip to content

Commit f376a4a

Browse files
author
aviau
committed
Test everything for flake8
1 parent beecccc commit f376a4a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

tests/influxdb/client_test.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ def test_scheme(self):
6363
cli = InfluxDBClient('host', 8086, 'username', 'password', 'database')
6464
assert cli._baseurl == 'http://host:8086'
6565

66-
cli = InfluxDBClient('host', 8086, 'username', 'password', 'database', ssl=True)
66+
cli = InfluxDBClient(
67+
'host', 8086, 'username', 'password', 'database', ssl=True
68+
)
6769
assert cli._baseurl == 'https://host:8086'
6870

6971
def test_switch_db(self):
@@ -124,7 +126,10 @@ def test_write_points_udp(self):
124126
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
125127
s.bind(('0.0.0.0', 4444))
126128

127-
cli = InfluxDBClient('localhost', 8086, 'root', 'root', 'test', use_udp=True, udp_port=4444)
129+
cli = InfluxDBClient(
130+
'localhost', 8086, 'root', 'root',
131+
'test', use_udp=True, udp_port=4444
132+
)
128133
cli.write_points(data)
129134

130135
received_data, addr = s.recvfrom(1024)
@@ -142,7 +147,10 @@ def test_write_bad_precision_udp(self):
142147
}
143148
]
144149

145-
cli = InfluxDBClient('localhost', 8086, 'root', 'root', 'test', use_udp=True, udp_port=4444)
150+
cli = InfluxDBClient(
151+
'localhost', 8086, 'root', 'root',
152+
'test', use_udp=True, udp_port=4444
153+
)
146154

147155
with self.assertRaises(Exception) as ex:
148156
cli.write_points_with_precision(data, time_precision='ms')

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ commands = nosetests
1010
deps =
1111
flake8
1212
pep8-naming
13-
commands = flake8 influxdb
13+
commands = flake8 influxdb tests
1414

1515
[testenv:coverage]
1616
deps = -r{toxinidir}/requirements.txt

0 commit comments

Comments
 (0)