8000 Flake8 fixes · DASpringate/influxdb-python@696a6f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 696a6f6

Browse files
author
aviau
committed
Flake8 fixes
1 parent 5cdbc27 commit 696a6f6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

influxdb/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ def drop_database(self, dbname):
334334
"""
335335
self.query("DROP DATABASE %s" % dbname)
336336

337-
def create_retention_policy(self, name, duration, replication, database=None, default=False):
337+
def create_retention_policy(
338+
self, name, duration,
339+
replication, database=None, default=False):
338340
"""
339341
Create a retention policy
340342

tests/influxdb/client_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ def test_create_retention_policy_default(self):
387387

388388
self.assertEqual(
389389
m.last_request.qs['q'][0],
390-
'create retention policy somename on db duration 1d replication 4 default'
390+
'create retention policy somename on '
391+
'db duration 1d replication 4 default'
391392
)
392393

393394
def test_create_retention_policy(self):
@@ -405,7 +406,8 @@ def test_create_retention_policy(self):
405406

406407
self.assertEqual(
407408
m.last_request.qs['q'][0],
408-
'create retention policy somename on db duration 1d replication 4'
409+
'create retention policy somename on '
410+
'db duration 1d replication 4'
409411
)
410412

411413
def test_get_list_retention_policies(self):

0 commit comments

Comments
 (0)
0