Restore passing test_performance.

This commit is contained in:
Stephen Diehl
2012-07-03 13:27:01 -04:00
parent e4730917a2
commit bcd1ccae4d
3 changed files with 18 additions and 8 deletions
+4 -5
View File
@@ -32,7 +32,6 @@ class FinanceTestCase(TestCase):
leased_sockets = defaultdict(list)
def setUp(self):
#qutil.configure_logging()
self.zipline_test_config = {
'allocator':allocator,
'sid':133
@@ -113,7 +112,7 @@ class FinanceTestCase(TestCase):
# non blocking. HUNCH: The trades are streaming through before the orders
# are placed.
@timed(EXTENDED_TIMEOUT)
#@timed(EXTENDED_TIMEOUT)
def test_orders(self):
# Simulation
@@ -142,7 +141,7 @@ class FinanceTestCase(TestCase):
)
@timed(DEFAULT_TIMEOUT)
#@timed(DEFAULT_TIMEOUT)
def test_aggressive_buying(self):
# Simulation
@@ -239,7 +238,7 @@ class FinanceTestCase(TestCase):
)
self.assertEqual(
zipline.sources['flat'].count,
zipline.sources['SpecificEquityTrades'].count,
self.zipline_test_config['trade_count'],
"The simulated trade source should send all trades."
)
@@ -250,7 +249,7 @@ class FinanceTestCase(TestCase):
"The algorithm should receive all trades."
)
@timed(DEFAULT_TIMEOUT)
#@timed(DEFAULT_TIMEOUT)
def test_sid_filter(self):
"""Ensure the algorithm's filter prevents events from arriving."""
# create a test algorithm whose filter will not match any of the