mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
test_classes: Mention actual and expected count in assert_length.
This commit is contained in:
committed by
Tim Abbott
parent
8ee80f29ae
commit
12afeee277
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user