def test_todo_list_status_done(todos_with_categories): manager = TodoManager(TESTING_PATH) todos = manager.list(status=TodoManager.STATUS_DONE) assert todos == { 'Programming': [{ 'task': 'Finish rmotrgram', 'description': 'Finish before class to start reviewing', 'due_on': '2018-03-21', 'status': 'done' }], 'Reviews': [] }
def test_todo_list_status_pending(todos_with_categories): manager = TodoManager(TESTING_PATH) todos = manager.list(status=TodoManager.STATUS_PENDING) assert todos == { 'Programming': [{ 'task': 'Practice Pathlib', 'description': 'Investigate Pathlib and file creation', 'due_on': '2018-03-25', 'status': 'pending' }], 'Reviews': [{ 'task': 'Review rmotrgram', 'description': 'Finish review before weekend', 'due_on': '2018-03-28', 'status': 'pending' }] }