Exemplo n.º 1
0
 def test_get_boards_config(self):
     self.config.set('mytrello', 'trello.include_boards', 'F00, B4R')
     service = TrelloService(self.config, 'general', 'mytrello')
     boards = service.get_boards()
     self.assertEqual(list(boards), [{
         'id': 'F00',
         'name': 'Foo Board'
     }, {
         'id': 'B4R',
         'name': 'Bar Board'
     }])
Exemplo n.º 2
0
 def test_get_boards_config(self):
     self.config.set('mytrello', 'trello.include_boards', 'F00, B4R')
     service = TrelloService(self.config, 'general', 'mytrello')
     boards = service.get_boards()
     self.assertEqual(list(boards), [{'id': 'F00', 'name': 'Foo Board'},
                                     {'id': 'B4R', 'name': 'Bar Board'}])
Exemplo n.º 3
0
 def test_get_boards_api(self):
     service = TrelloService(self.config, 'general', 'mytrello')
     boards = service.get_boards()
     self.assertEqual(list(boards), [self.BOARD])