From 8508e3bb38d9e369984e38c2b9fa6cc023ca2816 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 20 Nov 2024 13:22:27 -0800 Subject: [PATCH] Fix linting issues --- posthog/hogql/test/test_property.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/posthog/hogql/test/test_property.py b/posthog/hogql/test/test_property.py index 56f342c3444..eee278e83bd 100644 --- a/posthog/hogql/test/test_property.py +++ b/posthog/hogql/test/test_property.py @@ -812,17 +812,17 @@ class TestProperty(BaseTest): ) self.assertIsInstance(expr, ast.Or) - self.assertEqual(len(expr.exprs), 2) + self.assertEqual(len(getattr(expr, 'exprs')), 2) # First expression - compare_op_1 = expr.exprs[0] + compare_op_1 = getattr(expr, 'exprs')[0] self.assertIsInstance(compare_op_1, ast.CompareOperation) self.assertIsInstance(compare_op_1.left, ast.Field) self.assertEqual(compare_op_1.left.chain, ["foobars", "properties", "$feature/test"]) self.assertEqual(compare_op_1.right.value, "control") # Second expression - compare_op_2 = expr.exprs[1] + compare_op_2 = getattr(expr, 'exprs')[1] self.assertIsInstance(compare_op_2, ast.CompareOperation) self.assertIsInstance(compare_op_2.left, ast.Field) self.assertEqual(compare_op_2.left.chain, ["foobars", "properties", "$feature/test"])