@@ -63,7 +63,9 @@ def test_scheme(self):
63
63
cli = InfluxDBClient ('host' , 8086 , 'username' , 'password' , 'database' )
64
64
assert cli ._baseurl == 'http://host:8086'
65
65
66
- cli = InfluxDBClient ('host' , 8086 , 'username' , 'password' , 'database' , ssl = True )
66
+ cli = InfluxDBClient (
67
+ 'host' , 8086 , 'username' , 'password' , 'database' , ssl = True
68
+ )
67
69
assert cli ._baseurl == 'https://host:8086'
68
70
69
71
def test_switch_db (self ):
@@ -124,7 +126,10 @@ def test_write_points_udp(self):
124
126
s = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
125
127
s .bind (('0.0.0.0' , 4444 ))
126
128
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
+ )
128
133
cli .write_points (data )
129
134
130
135
received_data , addr = s .recvfrom (1024 )
@@ -142,7 +147,10 @@ def test_write_bad_precision_udp(self):
142
147
}
143
148
]
144
149
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
+ )
146
154
147
155
with self .assertRaises (Exception ) as ex :
148
156
cli .write_points_with_precision (data , time_precision = 'ms' )
0 commit comments