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_classes: Mention actual and expected count in assert_length.

Shubham Padia12afeee27760
diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.py
index 9008c921c72..dd5aa2d2b45 100644
--- a/zerver/lib/test_classes.py
+++ b/zerver/lib/test_classes.py
@@ -1282,7 +1282,9 @@ Output:
for item in items:
print(item)
print(f"\nexpected length: {count}\nactual length: {actual_count}")
- raise AssertionError(f"{type(items)} is of unexpected size!")
+ raise AssertionError(
+ f"{type(items)} is of unexpected size! Expected count: {count}, actual count: {actual_count}."
+ )
@contextmanager
def assert_memcached_count(self, count: int) -> Iterator[None]: