From 3b9b9ccb2fa4a9ab02dab6bb3d4f9212fca95878 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Sun, 18 Jul 2021 12:06:35 -0400 Subject: [PATCH] Make sonar a little happier. I really should have commented the `pass` lines... --- tests/test_processor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_processor.py b/tests/test_processor.py index 312dd60..d7b03e3 100644 --- a/tests/test_processor.py +++ b/tests/test_processor.py @@ -350,7 +350,7 @@ class ConnectorTests(ProcessorTestCase): 'sprockets_statsd.statsd.time.time') as time_function: time_function.side_effect = [10.0, 22.345] with self.connector.timer('some.timer'): - pass + pass # exercising context manager self.assertEqual(2, time_function.call_count) await self.wait_for(self.statsd_server.message_received.acquire()) @@ -362,7 +362,7 @@ class ConnectorTests(ProcessorTestCase): 'sprockets_statsd.statsd.time.time') as time_function: time_function.side_effect = [10.001, 10.000] with self.connector.timer('some.timer'): - pass + pass # exercising context manager self.assertEqual(2, time_function.call_count) await self.wait_for(self.statsd_server.message_received.acquire()) @@ -541,10 +541,10 @@ class ConnectorTimerTests(ProcessorTestCase): async def test_that_timer_can_be_reused(self): timer = self.connector.timer('whatever') with timer: - pass + pass # exercising context manager await self.wait_for(self.statsd_server.message_received.acquire()) self.assertTrue(self.statsd_server.message_received.locked()) with timer: - pass + pass # exercising context manager await self.wait_for(self.statsd_server.message_received.acquire())