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

Function test_unique_fail

tests/fields/test_binary.py:42–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def test_unique_fail():
43 with pytest.raises(ConfigurationError, match="can't be indexed"):
44 BinaryField(unique=True)
45
46
47def test_index_fail():

Callers

nothing calls this directly

Calls 1

BinaryFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…