File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def _json_body_(cls):
148
148
for series_name , data in six .iteritems (cls ._datapoints ):
149
149
json .append ({'name' : series_name ,
150
150
'columns' : cls ._fields ,
151
- 'points' : [[point .__dict__ [k ] for k in cls ._fields ] \
151
+ 'points' : [[point .__dict__ [k ] for k in cls ._fields ]
152
152
for point in data ]
153
153
})
154
154
return json
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def testSingleSeriesName(self):
47
47
'columns' : ['time' , 'server_name' ]}]
48
48
49
49
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
51
51
all ([el in rcvd for el in expectation ]),
52
52
'Invalid JSON body of time series returned from '
53
53
'_json_body_ for one series name: {}.' .format (rcvd ))
@@ -79,7 +79,7 @@ def testSeveralSeriesNames(self):
79
79
'columns' : ['time' , 'server_name' ]}]
80
80
81
81
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
83
83
all ([el in rcvd for el in expectation ]),
84
84
'Invalid JSON body of time series returned from '
85
85
'_json_body_ for several series names: {}.'
@@ -151,5 +151,5 @@ class Meta:
151
151
# the warning only.
152
152
pass
153
153
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 ))
You can’t perform that action at this time.
0 commit comments