コード例 #1
0
 def make_config(self):
     config = TestCaseWithTestDB.make_config(self)
     # now add our smtp account
     acct = config.accounts['test_smtp'] = {}
     acct['proto'] = 'smtp'
     acct['username'] = '******'
     acct['id'] = 'smtp_test'
     return config
コード例 #2
0
ファイル: test_twitter.py プロジェクト: BigBlueHat/raindrop
 def make_config(self):
     config = TestCaseWithTestDB.make_config(self)
     # now add our twitter account
     acct = config.accounts['test_twitter'] = {}
     acct['id'] = 'twitter'
     acct['proto'] = 'twitter'
     acct['username'] = '******'
     return config
コード例 #3
0
ファイル: test_groupings.py プロジェクト: BigBlueHat/raindrop
 def make_config(self):
     config = TestCaseWithTestDB.make_config(self)
     # now clobber it with a fake imap account which has our test user.
     config.accounts.clear()
     acct = config.accounts['test'] = {}
     acct['proto'] = 'imap'
     acct['id'] = 'imap_test'
     acct['username'] = self.my_addy
     return config
コード例 #4
0
ファイル: test_smtp.py プロジェクト: LeonardoXavier/raindrop
 def make_config(self):
     config = TestCaseWithTestDB.make_config(self)
     # now clobber it with out smtp account
     config.accounts = {}
     acct = config.accounts['test'] = {}
     acct['proto'] = 'smtp'
     acct['username'] = '******'
     acct['id'] = 'smtp_test'
     acct['host'] = SMTP_SERVER_HOST
     acct['port'] = SMTP_SERVER_PORT
     acct['ssl'] = False
     return config
コード例 #5
0
ファイル: test_imap.py プロジェクト: BigBlueHat/raindrop
 def make_config(self):
     config = TestCaseWithTestDB.make_config(self)
     # now clobber it with our imap account
     config.accounts.clear()
     acct = config.accounts['test'] = {}
     acct['proto'] = 'imap'
     acct['username'] = self.imap_server._username
     acct['password'] = self.imap_server._password
     acct['id'] = 'imap_test'
     acct['host'] = IMAP_SERVER_HOST
     acct['port'] = IMAP_SERVER_PORT
     acct['ssl'] = False
     return config