From 0e2c0c78f28a191a2963c0a7ceda69636036991d Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 4 Dec 2024 11:57:29 -0800 Subject: [PATCH] style: fix indentation in analytics test file --- tests/basic/test_analytics.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/basic/test_analytics.py b/tests/basic/test_analytics.py index b29655069..fa44642f2 100644 --- a/tests/basic/test_analytics.py +++ b/tests/basic/test_analytics.py @@ -65,13 +65,11 @@ def test_analytics_event_logging(temp_analytics_file, temp_data_dir): test_event = "test_event" test_properties = {"test_key": "test_value"} + with patch.object(analytics.ph, "capture") as mock_ph_capture: + analytics.event(test_event, **test_properties) - # fix indent AI! - with patch.object(analytics.ph, "capture") as mock_ph_capture: - analytics.event(test_event, **test_properties) - - mock_mp_track.assert_called_once() - mock_ph_capture.assert_called_once() + mock_mp_track.assert_called_once() + mock_ph_capture.assert_called_once() # Verify logfile with open(temp_analytics_file) as f: