Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_retention: Add type annotation for expected_result

Zixuan James Lic5075be9aad8
diff --git a/zerver/tests/test_retention.py b/zerver/tests/test_retention.py
index cdfa40c3949..8ad5c0488a8 100644
--- a/zerver/tests/test_retention.py
+++ b/zerver/tests/test_retention.py
@@ -976,7 +976,7 @@ class TestGetRealmAndStreamsForArchiving(ZulipTestCase):
# so we use a helper to order both structures in a consistent manner. This wouldn't be necessary
# if python had a true "unordered list" data structure. Set doesn't do the job, because it requires
# elements to be hashable.
- expected_result = [
+ expected_result: List[Tuple[Realm, List[Stream]]] = [
(zulip_realm, list(Stream.objects.filter(realm=zulip_realm).exclude(id=verona.id))),
(zephyr_realm, [archiving_enabled_zephyr_stream]),
(realm_all_streams_archiving_disabled, []),