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

Function test_index_fail

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

Source from the content-addressed store, hash-verified

45
46
47def test_index_fail():
48 with pytest.warns(
49 DeprecationWarning, match="`index` is deprecated, please use `db_index` instead"
50 ):
51 with pytest.raises(ConfigurationError, match="can't be indexed"):
52 BinaryField(index=True)
53 with pytest.raises(ConfigurationError, match="can't be indexed"):
54 BinaryField(db_index=True)

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…