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)
def __init__(self, config, twitterAPI, friendBizAPI): self.config = config self.twitterAPI = twitterAPI self.friendBizAPI = friendBizAPI self.command = botCommands(self.twitterAPI, self.friendBizAPI)