mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-09 11:19:23 +08:00
BLD/STY: Upgrade to latest versions of lint checkers.
Upgrade pep8 1.4.6 -> 1.5.7 Upgrade pyflakes 0.7.3 -> 0.8.1 Also, tweak some line indentations which now show up as errors, because of the fixes/changes to visual indent detection between pep8 versions.
This commit is contained in:
@@ -82,7 +82,7 @@ class ExceptionTestCase(TestCase):
|
||||
'handle_data',
|
||||
self.zipline_test_config['sid'],
|
||||
sim_params=factory.create_simulation_parameters()
|
||||
)
|
||||
)
|
||||
|
||||
zipline = simfactory.create_test_zipline(
|
||||
**self.zipline_test_config
|
||||
@@ -102,7 +102,7 @@ class ExceptionTestCase(TestCase):
|
||||
DivByZeroAlgorithm(
|
||||
self.zipline_test_config['sid'],
|
||||
sim_params=factory.create_simulation_parameters()
|
||||
)
|
||||
)
|
||||
|
||||
zipline = simfactory.create_test_zipline(
|
||||
**self.zipline_test_config
|
||||
@@ -122,7 +122,7 @@ class ExceptionTestCase(TestCase):
|
||||
SetPortfolioAlgorithm(
|
||||
self.zipline_test_config['sid'],
|
||||
sim_params=factory.create_simulation_parameters()
|
||||
)
|
||||
)
|
||||
|
||||
zipline = simfactory.create_test_zipline(
|
||||
**self.zipline_test_config
|
||||
|
||||
@@ -704,8 +704,8 @@ class TestPositionPerformance(unittest.TestCase):
|
||||
trades[-1]['price'],
|
||||
"last sale should be same as last trade. \
|
||||
expected {exp} actual {act}".format(
|
||||
exp=trades[-1]['price'],
|
||||
act=pp.positions[1].last_sale_price)
|
||||
exp=trades[-1]['price'],
|
||||
act=pp.positions[1].last_sale_price)
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
|
||||
Reference in New Issue
Block a user