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

Function test_empty

tests/fields/test_array.py:10–13  ·  view source on GitHub ↗

Test that creating without required array field raises IntegrityError.

(db_array_fields)

Source from the content-addressed store, hash-verified

8@requireCapability(dialect="postgres")
9@pytest.mark.asyncio
10async def test_empty(db_array_fields):
11 """Test that creating without required array field raises IntegrityError."""
12 with pytest.raises(IntegrityError):
13 await testmodels.ArrayFields.create()
14
15
16@requireCapability(dialect="postgres")

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…