MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / test_function

Method test_function

tests/test_source_field.py:208–212  ·  view source on GitHub ↗
(self, db)

Source from the content-addressed store, hash-verified

206
207 @pytest.mark.asyncio
208 async def test_function(self, db):
209 obj1 = await self.model.create(chars=" aaa ")
210 await self.model.filter(eyedee=obj1.eyedee).update(chars=Trim("chars"))
211 obj2 = await self.model.get(eyedee=obj1.eyedee)
212 assert obj2.chars == "aaa"
213
214 @pytest.mark.asyncio
215 async def test_aggregation_with_filter(self, db):

Callers

nothing calls this directly

Calls 5

TrimClass · 0.90
updateMethod · 0.80
createMethod · 0.45
filterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected