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

Function test_hash

tests/test_model_methods.py:212–215  ·  view source on GitHub ↗
(tournament_model, tournament_model_unsaved)

Source from the content-addressed store, hash-verified

210
211@pytest.mark.asyncio
212async def test_hash(tournament_model, tournament_model_unsaved):
213 assert hash(tournament_model) == tournament_model.id
214 with pytest.raises(TypeError):
215 hash(tournament_model_unsaved)
216
217
218@pytest.mark.asyncio

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…