From debe4dc3a37faf9ed77111608a8c607d0c5d8f4b Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 17 Apr 2024 00:30:10 -0700 Subject: [PATCH] fix bug in the previous test --- rollbar/test/test_shortener_transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollbar/test/test_shortener_transform.py b/rollbar/test/test_shortener_transform.py index 3bcc458c..b1c3f796 100644 --- a/rollbar/test/test_shortener_transform.py +++ b/rollbar/test/test_shortener_transform.py @@ -47,7 +47,7 @@ def _assert_shortened(self, key, expected): result = transforms.transform(self.data, shortener) if key == 'dict': - self.assertEqual(expected, len(result)) + self.assertEqual(expected, len(result[key])) elif key in ('list_max_level', 'dict_max_level'): self.assertEqual(expected, result[key]) else: