Skip to content

Commit

Permalink
Fixes test for celery#1964
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Apr 10, 2014
1 parent 0dcb8fe commit fb48b1f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions celery/tests/backends/test_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ def test_get_task_meta_for(self, mock_get_database):
mock_get_database.assert_called_once_with()
mock_database.__getitem__.assert_called_once_with(MONGODB_COLLECTION)
self.assertEqual(
['status', 'task_id', 'date_done', 'traceback', 'result',
'children'],
list(ret_val.keys()))
list(sorted(['status', 'task_id', 'date_done', 'traceback',
'result', 'children'])),
list(sorted(ret_val.keys())),
)

@patch('celery.backends.mongodb.MongoBackend._get_database')
def test_get_task_meta_for_no_result(self, mock_get_database):
Expand Down

0 comments on commit fb48b1f

Please sign in to comment.