mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
test_retention: Keep helper functions in a base class.
This commit is contained in:
parent
2370e6717c
commit
6d69405f54
@ -20,7 +20,7 @@ from zerver.lib.retention import (
|
||||
ZULIP_REALM_DAYS = 30
|
||||
MIT_REALM_DAYS = 100
|
||||
|
||||
class TestRetentionLib(ZulipTestCase):
|
||||
class RetentionTestingBase(ZulipTestCase):
|
||||
"""
|
||||
Test receiving expired messages retention tool.
|
||||
"""
|
||||
@ -113,6 +113,7 @@ class TestRetentionLib(ZulipTestCase):
|
||||
return {'expired_message_id': expired_message_id, 'actual_message_id': actual_message_id,
|
||||
'other_user_message_id': other_message_id}
|
||||
|
||||
class TestArchivingGeneral(RetentionTestingBase):
|
||||
def test_no_expired_messages(self) -> None:
|
||||
move_expired_to_archive()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user