Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python-attrs/attrs
/ ReTester
Class
ReTester
tests/test_validators.py:184–185 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
182
183
@attr.s
184
class
ReTester:
185
str_match = attr.ib(validator=matches_re(
"a|ab"
))
186
187
ReTester(
"ab"
)
# shouldn't raise exceptions
188
with
pytest.raises(TypeError):
Callers
1
test_match
Method · 0.85
Calls
1
matches_re
Function · 0.90
Tested by
1
test_match
Method · 0.68