Example #1
0
class TrelloTestCase(unittest.TestCase):
	"""
	Tests for Trello API. Note these test are in order to preserve dependencies, as an API 
	integration cannot be tested independently.
	
	Sveder: Eventually the test will be self encompasing (meaning on set up you
	build the board, organization and whatever up) and then access it using the
	api. For now, I'm converting it to use the public board:
	https://trello.com/board/pytrello-test-board/4f80ca3a48bc86b25333becb
	"""
	
	def setUp(self):
		self.trello = Trello(TRELLO_API_KEY, TRELLO_OAUTH_SECRET)
	
	def tearDown(self):
		#self._trello.logout()
		pass

	def test_01_list_boards(self):

		board_count = self.trello.list_boards()
		print board_count
Example #2
0
	def setUp(self):
		self.trello = Trello(TRELLO_API_KEY, TRELLO_OAUTH_SECRET)