Skip to content

Commit 16743cc

Browse files
feat: fix ruff
1 parent f8af329 commit 16743cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_edgee.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from unittest.mock import MagicMock, patch
66

77
import pytest
8-
from pydantic import BaseModel
8+
from pydantic import BaseModel, ValidationError
99

1010
from edgee import Edgee, EdgeeConfig, Tool, create_tool
1111

@@ -382,7 +382,7 @@ class StrictParams(BaseModel):
382382
handler=lambda p: p.value,
383383
)
384384

385-
with pytest.raises(Exception): # ValidationError
385+
with pytest.raises(ValidationError):
386386
tool.execute({"value": "not_an_int"})
387387

388388
def test_create_tool_helper(self):

0 commit comments

Comments
 (0)