diff options
Diffstat (limited to 'tests/db/test_thread.py')
-rw-r--r-- | tests/db/test_thread.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/db/test_thread.py b/tests/db/test_thread.py index 8c78a026..8b43b0b9 100644 --- a/tests/db/test_thread.py +++ b/tests/db/test_thread.py @@ -38,15 +38,15 @@ class TestThreadGetAuthor(unittest.TestCase): minute=10)), ('ooh', None)]: m = mock.Mock() - m.get_date = mock.Mock(return_value=d) + m.date = d m.get_author = mock.Mock(return_value=a) get_messages.append(m) gm = mock.Mock() - gm.keys = mock.Mock(return_value=get_messages) + gm.values = mock.Mock(return_value=get_messages) cls.__patchers.extend([ - mock.patch('alot.db.thread.Thread.get_messages', - new=mock.Mock(return_value=gm)), + mock.patch('alot.db.thread.Thread.messages', + new=mock.Mock(return_value=get_messages)), mock.patch('alot.db.thread.Thread.refresh', new=mock.Mock()), ]) |