Example #1
0
 def setUp(self):
     setup_logger(self)
     self.default_identity = 'johndoe'
     self.event_data = zipline.protocol.BarData()
     for sid in ['goog', 'aapl', 'msft']:
         self.event_data[sid] = zipline.protocol.SIDData(
             _generate_sid_data(sid)
         )
 def setUp(self):
     test_utils.setup_logger(self)
     self.good_driver = \
         'intuition.test_utils.FakeContext://localhost/path?valid=true'
     self.bad_driver = \
         'no.file.FileContext://localhost/path?valid=true'
     self.bad_config = \
         'intuition.test_utils.FakeContext://localhost/path?valid=false'
     self.bad_formatted_config = \
         'intuition.test_utils.FakeContext://localhost/path?format=false'
Example #3
0
 def setUp(self):
     test_utils.setup_logger(self)
     self.good_driver = \
         'intuition.test_utils.FakeContext://localhost/path?valid=true'
     self.bad_driver = \
         'no.file.FileContext://localhost/path?valid=true'
     self.bad_config = \
         'intuition.test_utils.FakeContext://localhost/path?valid=false'
     self.bad_formatted_config = \
         'intuition.test_utils.FakeContext://localhost/path?format=false'
Example #4
0
 def setUp(self):
     setup_logger(self)
     self.default_template_path = os.path.expanduser(
         '~/.intuition/assets/report.rnw')
Example #5
0
 def setUp(self):
     setup_logger(self)
     self.default_template_path = os.path.expanduser(
         '~/.intuition/assets/report.rnw')
Example #6
0
 def setUp(self):
     setup_logger(self)
     self.some_date = dt.datetime(2014, 04, 10)
     self.buy_signal = {'goog': 34}
     self.test_sids = ['goog', 'aapl', 'msft']
     self.test_pf = generate_fake_portfolio(self.test_sids)