You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to start contributing to this project but when I run tests some of them are failing, and some get errors.
Using version 0.19.0 with python3.10 and python2.7
When running tests on version 0.19.0 I get multiple failed tests:
ERROR: test_clear_checklist (test.test_checklist.TrelloChecklistTestCase) /py-trello/trello/checklist.py", line 62, in clear old_items = items[:] NameError: name 'items' is not defined
ERROR: test_delete_checklist_item (test.test_checklist.TrelloChecklistTestCase) py-trello/test/test_checklist.py", line 94, in test_delete_checklist_item self.assertEqual(len(checklists[0].items), 1) IndexError: list index out of range
ERROR: test_add_delete_star (test.test_trello_client.TrelloClientTestCase) trello.exceptions.Unauthorized: unauthorized member permission requested. at https://api.trello.com/1/members/me/boardStars (HTTP status: 401)
FAIL: test_checklist_rename (test.test_checklist.TrelloChecklistTestCase) /py-trello/test/test_checklist.py", line 82, in test_checklist_rename self.assertEqual(len(card.checklists), 1) AssertionError: 0 != 1
FAIL: test_delete_checklist_remaining (test.test_checklist.TrelloChecklistTestCase) py-trello/test/test_checklist.py", line 68, in test_delete_checklist_remaining self.assertEqual(len(card.checklists), 1) AssertionError: 0 != 1
The text was updated successfully, but these errors were encountered:
I'm doing some work on this and seeing failures as well. I believe the tests are just bad and this is likely no fault of your own.
I've just started looking into this, but I think the implementation is bad. test_delete_checklist_remaining for instance creates a card, adds two checklists to it, then deletes it. It then checks the card to assert there's 1 checklist on the card. However, the implementation logic for fetch_checklists has this at the top:
if self.countCheckLists == 0:
return []
There are two problems with this:
self.countChecklists is only written to in from_json when the card is created
If the backing card is modified externally while the card object lives in memory, it will have no way of knowing a list was added.
Deleting that bit of code gets most of the tests to pass for me. And fixing another blatant syntax error fixes the one remaining failure.
I want to start contributing to this project but when I run tests some of them are failing, and some get errors.
Using version 0.19.0 with python3.10 and python2.7
When running tests on version 0.19.0 I get multiple failed tests:
ERROR: test_clear_checklist (test.test_checklist.TrelloChecklistTestCase) /py-trello/trello/checklist.py", line 62, in clear old_items = items[:] NameError: name 'items' is not defined
ERROR: test_delete_checklist_item (test.test_checklist.TrelloChecklistTestCase) py-trello/test/test_checklist.py", line 94, in test_delete_checklist_item self.assertEqual(len(checklists[0].items), 1) IndexError: list index out of range
ERROR: test_add_delete_star (test.test_trello_client.TrelloClientTestCase) trello.exceptions.Unauthorized: unauthorized member permission requested. at https://api.trello.com/1/members/me/boardStars (HTTP status: 401)
FAIL: test_checklist_rename (test.test_checklist.TrelloChecklistTestCase) /py-trello/test/test_checklist.py", line 82, in test_checklist_rename self.assertEqual(len(card.checklists), 1) AssertionError: 0 != 1
FAIL: test_delete_checklist_remaining (test.test_checklist.TrelloChecklistTestCase) py-trello/test/test_checklist.py", line 68, in test_delete_checklist_remaining self.assertEqual(len(card.checklists), 1) AssertionError: 0 != 1
The text was updated successfully, but these errors were encountered: