File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -196,16 +196,19 @@ def test_handles_missing_success_field(
196196 200 ,
197197 )
198198
199- with pytest .raises (Exception ) as excinfo : # Pydantic will raise ValidationError
199+ with pytest .raises (
200+ Exception
201+ ) as excinfo : # Pydantic will raise ValidationError
200202 self .audit_logs .create_event (
201203 organization_id = organization_id ,
202204 event = mock_audit_log_event ,
203205 )
204206
205207 # Assert that validation error occurred
206- assert "success" in str (excinfo .value ).lower () or "validation" in str (
207- excinfo .value
208- ).lower ()
208+ assert (
209+ "success" in str (excinfo .value ).lower ()
210+ or "validation" in str (excinfo .value ).lower ()
211+ )
209212
210213 def test_handles_invalid_success_type (
211214 self , mock_audit_log_event , mock_http_client_with_response
@@ -220,7 +223,9 @@ def test_handles_invalid_success_type(
220223 200 ,
221224 )
222225
223- with pytest .raises (Exception ) as excinfo : # Pydantic will raise ValidationError
226+ with pytest .raises (
227+ Exception
228+ ) as excinfo : # Pydantic will raise ValidationError
224229 self .audit_logs .create_event (
225230 organization_id = organization_id ,
226231 event = mock_audit_log_event ,
You can’t perform that action at this time.
0 commit comments