MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / test_validator_regex

Function test_validator_regex

tests/test_validators.py:10–13  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

8
9@pytest.mark.asyncio
10async def test_validator_regex(db):
11 with pytest.raises(ValidationError):
12 await ValidatorModel.create(regex="ccc")
13 await ValidatorModel.create(regex="abcd")
14
15
16@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…