Skip to content

Commit 6df9b7a

Browse files
lint
1 parent adfcb80 commit 6df9b7a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

tests/test_audit_logs.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

workos/types/audit_logs/audit_log_event_response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ class AuditLogEventResponse(WorkOSModel):
55
"""Response from creating an audit log event."""
66

77
success: bool
8-

0 commit comments

Comments
 (0)