Skip to content

Commit ca3d0bc

Browse files
authored
Update test_pluginmanager.py
1 parent 9d1d833 commit ca3d0bc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

testing/test_pluginmanager.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"""
44

55
import importlib.metadata
6-
from typing import Any
7-
from typing import List
6+
from typing import Any, List, Dict
87

98
import pytest
109

@@ -138,7 +137,7 @@ def some_func(self):
138137
def test_register_skips_pydantic_fields(he_pm: PluginManager) -> None:
139138
class PydanticModelClass:
140139
# stub to make object look like a pydantic model
141-
model_fields: dict = {"some_attr": {}}
140+
model_fields: Dict[str, bool] = {"some_attr": True}
142141

143142
def __pydantic_core_schema__(self): ...
144143

@@ -147,7 +146,7 @@ def some_attr(self): ...
147146

148147
test_plugin = PydanticModelClass()
149148
he_pm.register(test_plugin)
150-
with pytest.raises(AttributeError) as excinfo:
149+
with pytest.raises(AttributeError):
151150
he_pm.hook.some_attr.get_hookimpls()
152151

153152

0 commit comments

Comments
 (0)