mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
test_helpers: Create get_last_message helper.
This commit is contained in:
@@ -365,3 +365,5 @@ class AuthedTestCase(TestCase):
|
||||
|
||||
return msg
|
||||
|
||||
def get_last_message(self):
|
||||
return Message.objects.latest('id')
|
||||
|
||||
Reference in New Issue
Block a user