Skip to content

Commit 3401c80

Browse files
author
Christopher Rabotin
committed
More corrections for flake8.
1 parent e3c6a5c commit 3401c80

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

influxdb/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _json_body_(cls):
148148
for series_name, data in six.iteritems(cls._datapoints):
149149
json.append({'name': series_name,
150150
'columns': cls._fields,
151-
'points': [[point.__dict__[k] for k in cls._fields] \
151+
'points': [[point.__dict__[k] for k in cls._fields]
152152
for point in data]
153153
})
154154
return json

tests/influxdb/helper_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def testSingleSeriesName(self):
4747
'columns': ['time', 'server_name']}]
4848

4949
rcvd = TestSeriesHelper.MySeriesHelper._json_body_()
50-
self.assertTrue(all([el in expectation for el in rcvd]) and \
50+
self.assertTrue(all([el in expectation for el in rcvd]) and
5151
all([el in rcvd for el in expectation]),
5252
'Invalid JSON body of time series returned from '
5353
'_json_body_ for one series name: {}.'.format(rcvd))
@@ -79,7 +79,7 @@ def testSeveralSeriesNames(self):
7979
'columns': ['time', 'server_name']}]
8080

8181
rcvd = TestSeriesHelper.MySeriesHelper._json_body_()
82-
self.assertTrue(all([el in expectation for el in rcvd]) and \
82+
self.assertTrue(all([el in expectation for el in rcvd]) and
8383
all([el in rcvd for el in expectation]),
8484
'Invalid JSON body of time series returned from '
8585
'_json_body_ for several series names: {}.'
@@ -151,5 +151,5 @@ class Meta:
151151
# the warning only.
152152
pass
153153
self.assertEqual(len(w), 1,
154-
'Calling {} did not generate exactly one warning.'
155-
.format(cls))
154+
'Calling {} did not generate exactly one warning.'
155+
.format(cls))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy