Skip to content

Commit

Permalink
gh-124 Fix for original PR, unit tests had flaw that hid non-working …
Browse files Browse the repository at this point in the history
…code for copying board.
  • Loading branch information
David Stenglein committed Feb 4, 2016
1 parent d5d0d8c commit 51e3a8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test110_copy_board(self):
listed_boards = self._trello.list_boards(board_filter="open")
copied_board = next(iter([x for x in listed_boards if x.name == "copied_board"]), None)
self.assertIsNotNone(copied_board)
open_lists = source_board.open_lists()
open_lists = copied_board.open_lists()
self.assertEqual(len(open_lists), 4) # default lists plus mine
test_list = open_lists[0]
self.assertEqual(len(test_list.list_cards()), 1)
Expand Down
2 changes: 1 addition & 1 deletion trello/trelloclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def add_board(self, board_name, source_board=None):
post_args['idBoardSource'] = source_board.id

obj = self.fetch_json('/boards', http_method='POST',
post_args={'name': board_name})
post_args=post_args)
return Board.from_json(self, json_obj=obj)

def get_member(self, member_id):
Expand Down

0 comments on commit 51e3a8f

Please sign in to comment.