@@ -117,22 +117,6 @@ def test_basic_capture_exception(self):
117117 capture_call = patch_capture .call_args [0 ]
118118 self .assertEqual (capture_call [0 ], "distinct_id" )
119119 self .assertEqual (capture_call [1 ], "$exception" )
120- self .assertEqual (
121- capture_call [2 ],
122- {
123- "$exception_type" : "Exception" ,
124- "$exception_message" : "test exception" ,
125- "$exception_list" : [
126- {
127- "mechanism" : {"type" : "generic" , "handled" : True },
128- "module" : None ,
129- "type" : "Exception" ,
130- "value" : "test exception" ,
131- }
132- ],
133- "$exception_personURL" : "https://us.i.posthog.com/project/random_key/person/distinct_id" ,
134- },
135- )
136120
137121 def test_basic_capture_exception_with_distinct_id (self ):
138122 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
@@ -144,22 +128,6 @@ def test_basic_capture_exception_with_distinct_id(self):
144128 capture_call = patch_capture .call_args [0 ]
145129 self .assertEqual (capture_call [0 ], "distinct_id" )
146130 self .assertEqual (capture_call [1 ], "$exception" )
147- self .assertEqual (
148- capture_call [2 ],
149- {
150- "$exception_type" : "Exception" ,
151- "$exception_message" : "test exception" ,
152- "$exception_list" : [
153- {
154- "mechanism" : {"type" : "generic" , "handled" : True },
155- "module" : None ,
156- "type" : "Exception" ,
157- "value" : "test exception" ,
158- }
159- ],
160- "$exception_personURL" : "https://us.i.posthog.com/project/random_key/person/distinct_id" ,
161- },
162- )
163131
164132 def test_basic_capture_exception_with_correct_host_generation (self ):
165133 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
@@ -173,22 +141,6 @@ def test_basic_capture_exception_with_correct_host_generation(self):
173141 capture_call = patch_capture .call_args [0 ]
174142 self .assertEqual (capture_call [0 ], "distinct_id" )
175143 self .assertEqual (capture_call [1 ], "$exception" )
176- self .assertEqual (
177- capture_call [2 ],
178- {
179- "$exception_type" : "Exception" ,
180- "$exception_message" : "test exception" ,
181- "$exception_list" : [
182- {
183- "mechanism" : {"type" : "generic" , "handled" : True },
184- "module" : None ,
185- "type" : "Exception" ,
186- "value" : "test exception" ,
187- }
188- ],
189- "$exception_personURL" : "https://aloha.com/project/random_key/person/distinct_id" ,
190- },
191- )
192144
193145 def test_basic_capture_exception_with_correct_host_generation_for_server_hosts (
194146 self ,
@@ -206,22 +158,6 @@ def test_basic_capture_exception_with_correct_host_generation_for_server_hosts(
206158 capture_call = patch_capture .call_args [0 ]
207159 self .assertEqual (capture_call [0 ], "distinct_id" )
208160 self .assertEqual (capture_call [1 ], "$exception" )
209- self .assertEqual (
210- capture_call [2 ],
211- {
212- "$exception_type" : "Exception" ,
213- "$exception_message" : "test exception" ,
214- "$exception_list" : [
215- {
216- "mechanism" : {"type" : "generic" , "handled" : True },
217- "module" : None ,
218- "type" : "Exception" ,
219- "value" : "test exception" ,
220- }
221- ],
222- "$exception_personURL" : "https://app.posthog.com/project/random_key/person/distinct_id" ,
223- },
224- )
225161
226162 def test_basic_capture_exception_with_no_exception_given (self ):
227163 with mock .patch .object (Client , "capture" , return_value = None ) as patch_capture :
0 commit comments