@@ -100,7 +100,6 @@ def test_basic_super_properties(self):
100100 self .assertEqual (msg ["properties" ]["source" ], "repo-name" )
101101
102102 def test_basic_capture_exception (self ):
103-
104103 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
105104 client = self .client
106105 exception = Exception ("test exception" )
@@ -128,7 +127,6 @@ def test_basic_capture_exception(self):
128127 )
129128
130129 def test_basic_capture_exception_with_distinct_id (self ):
131-
132130 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
133131 client = self .client
134132 exception = Exception ("test exception" )
@@ -156,7 +154,6 @@ def test_basic_capture_exception_with_distinct_id(self):
156154 )
157155
158156 def test_basic_capture_exception_with_correct_host_generation (self ):
159-
160157 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
161158 client = Client (FAKE_TEST_API_KEY , on_error = self .set_fail , host = "https://aloha.com" )
162159 exception = Exception ("test exception" )
@@ -184,7 +181,6 @@ def test_basic_capture_exception_with_correct_host_generation(self):
184181 )
185182
186183 def test_basic_capture_exception_with_correct_host_generation_for_server_hosts (self ):
187-
188184 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
189185 client = Client (FAKE_TEST_API_KEY , on_error = self .set_fail , host = "https://app.posthog.com" )
190186 exception = Exception ("test exception" )
@@ -212,7 +208,6 @@ def test_basic_capture_exception_with_correct_host_generation_for_server_hosts(s
212208 )
213209
214210 def test_basic_capture_exception_with_no_exception_given (self ):
215-
216211 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
217212 client = self .client
218213 try :
@@ -249,10 +244,8 @@ def test_basic_capture_exception_with_no_exception_given(self):
249244 self .assertEqual (capture_call [2 ]["$exception_list" ][0 ]["stacktrace" ]["frames" ][0 ]["in_app" ], True )
250245
251246 def test_basic_capture_exception_with_no_exception_happening (self ):
252-
253247 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
254248 with self .assertLogs ("posthog" , level = "WARNING" ) as logs :
255-
256249 client = self .client
257250 client .capture_exception ()
258251
0 commit comments