mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 04:05:58 +08:00
fixes per code review
This commit is contained in:
@@ -46,8 +46,8 @@ class ExceptionTestCase(TestCase):
|
||||
output, _ = drain_zipline(self, zipline)
|
||||
|
||||
self.assertEqual(
|
||||
ctx.exception.message,
|
||||
'integer division or modulo by zero'
|
||||
ctx.exception.message,
|
||||
'integer division or modulo by zero'
|
||||
)
|
||||
|
||||
|
||||
@@ -149,6 +149,6 @@ class ExceptionTestCase(TestCase):
|
||||
output, _ = drain_zipline(self, zipline)
|
||||
|
||||
self.assertEqual(
|
||||
ctx.exception.message,
|
||||
'Too much time spent in handle_data call'
|
||||
)
|
||||
ctx.exception.message,
|
||||
'Too much time spent in handle_data call'
|
||||
)
|
||||
|
||||
@@ -70,7 +70,7 @@ def drain_zipline(test, zipline):
|
||||
for update in zipline:
|
||||
msg_counter += 1
|
||||
output.append(update)
|
||||
if update.has_key('daily_perf'):
|
||||
if 'daily_perf' in update:
|
||||
transaction_count += \
|
||||
len(update['daily_perf']['transactions'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user