Esempio n. 1
0
 def setUp(self):
     self.session = self.dbSessionMaker()
     self.config = {"startingBalance":100, "startingPrice":1, "historyLength":10}
     self.friendBizAPI = friendBizAPI(self.dbSessionMaker, self.config)
     self.fakeTwitter = fakeTwitterAPI()
     self.command = botCommands(self.fakeTwitter, self.friendBizAPI)
Esempio n. 2
0
 def __init__(self, config, twitterAPI, friendBizAPI):
     self.config = config
     self.twitterAPI = twitterAPI
     self.friendBizAPI = friendBizAPI
     self.command = botCommands(self.twitterAPI, self.friendBizAPI)