Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tortoise/tortoise-orm
/ functions
Functions
3,850 in github.com/tortoise/tortoise-orm
⨍
Functions
3,850
◇
Types & classes
935
↳
Endpoints
102
Function
test_small_int_fields_values_list
(db)
tests/fields/test_int.py:123
Function
test_sql_default_construction_and_get_sql
SqlDefault construction and get_sql.
tests/fields/test_db_default.py:536
Function
test_sql_default_equality_and_hashing
SqlDefault equality and hashing.
tests/fields/test_db_default.py:570
Function
test_sql_default_passes_field_validation
SqlDefault is not callable -- passes field validation.
tests/fields/test_db_default.py:599
Function
test_sql_default_repr
SqlDefault repr.
tests/fields/test_db_default.py:585
Function
test_sqlite_add_check_constraint_rebuilds_table
SQLite adds CHECK constraints by rebuilding the table.
tests/migrations/test_schema_editor_constraints.py:507
Function
test_sqlite_add_field_unique_uses_index
()
tests/migrations/test_schema_editor_sqlite.py:22
Function
test_sqlite_basic
()
tests/backends/test_db_url.py:20
Function
test_sqlite_constraint_name_used_for_drop
()
tests/migrations/test_schema_editor_sqlite.py:38
Function
test_sqlite_func_rand
(db, intfields)
tests/contrib/test_functions.py:42
Function
test_sqlite_ignores_schema
SQLite ignores schema — table name has no schema prefix.
tests/migrations/test_schema_qualified_migrations.py:278
Function
test_sqlite_introspection_finds_unique_index
SQLite introspection should find unique index by column using PRAGMA.
tests/migrations/test_schema_editor_constraints.py:229
Function
test_sqlite_introspection_raises_with_fakeclient
SQLite _get_unique_constraint_names_from_db raises when FakeClient has no execute_query.
tests/migrations/test_schema_editor_constraints.py:219
Function
test_sqlite_invalid
()
tests/backends/test_db_url.py:91
Function
test_sqlite_no_db
()
tests/backends/test_db_url.py:32
Function
test_sqlite_params
()
tests/backends/test_db_url.py:77
Function
test_sqlite_relative
()
tests/backends/test_db_url.py:37
Function
test_sqlite_relative_with_subdir
()
tests/backends/test_db_url.py:49
Function
test_sqlite_remove_constraint_fallback_with_fakeclient
SQLite with FakeClient falls back to deterministic uid_ name.
tests/migrations/test_schema_editor_constraints.py:253
Function
test_sqlite_schema_qualified_ignores_schema
SQLite should ignore Meta.schema and produce standard table names.
tests/schema/test_generate_schema.py:2041
Function
test_sqlite_testing
()
tests/backends/test_db_url.py:61
Function
test_ssl_custom
()
tests/backends/test_postgres.py:99
Function
test_ssl_custom
Test SSL with custom context (may pass or fail depending on server).
tests/backends/test_mysql.py:69
Function
test_ssl_true
()
tests/backends/test_postgres.py:79
Function
test_ssl_true
Test that SSL=True with no cert raises ConnectionError.
tests/backends/test_mysql.py:46
Function
test_state_apps_builds_relations_before_querysets
()
tests/migrations/test_state_generator.py:45
Function
test_state_building_200_models
State building from 200 CreateModel operations with FK relations.
tests/benchmarks/test_state_building.py:47
Function
test_state_building_performance_200_models
State building from 200 CreateModel operations must complete quickly.
tests/migrations/test_state_performance.py:50
Function
test_state_clone_preserves_relations
Cloned state must have functional FK relations.
tests/migrations/test_state_performance.py:124
Function
test_state_clone_produces_independent_copy
Cloned state must be fully independent from the original.
tests/migrations/test_state_performance.py:87
Function
test_stduent__unfetched_iter
(db)
tests/fields/test_fk_with_unique.py:136
Function
test_str
(tournament_model)
tests/test_model_methods.py:200
Function
test_str
Test capabilities string representation.
tests/backends/test_capabilities.py:16
Method
test_str
(self)
tests/test_db_default_insert.py:40
Function
test_str_enum
(db)
tests/contrib/test_pydantic.py:2116
Function
test_student__all
(db)
tests/fields/test_fk_with_unique.py:251
Function
test_student__by_name__awaited
(db)
tests/fields/test_fk_with_unique.py:57
Function
test_student__by_name__created_prefetched
(db)
tests/fields/test_fk_with_unique.py:32
Function
test_student__by_name__re_awaited
(db)
tests/fields/test_fk_with_unique.py:48
Function
test_student__by_name__unfetched
(db)
tests/fields/test_fk_with_unique.py:40
Function
test_student__create_by_id
(db)
tests/fields/test_fk_with_unique.py:15
Function
test_student__create_by_name
(db)
tests/fields/test_fk_with_unique.py:23
Function
test_student__empty
(db)
tests/fields/test_fk_with_unique.py:9
Function
test_student__fetched_bool
(db)
tests/fields/test_fk_with_unique.py:220
Function
test_student__fetched_contains
(db)
tests/fields/test_fk_with_unique.py:196
Function
test_student__fetched_getitem
(db)
tests/fields/test_fk_with_unique.py:230
Function
test_student__fetched_iter
(db)
tests/fields/test_fk_with_unique.py:204
Function
test_student__fetched_len
(db)
tests/fields/test_fk_with_unique.py:212
Function
test_student__filter
(db)
tests/fields/test_fk_with_unique.py:241
Function
test_student__instantiated_await
(db)
tests/fields/test_fk_with_unique.py:190
Function
test_student__instantiated_create
(db)
tests/fields/test_fk_with_unique.py:177
Function
test_student__instantiated_iterate
(db)
tests/fields/test_fk_with_unique.py:183
Function
test_student__limit
(db)
tests/fields/test_fk_with_unique.py:268
Function
test_student__unfetched_bool
(db)
tests/fields/test_fk_with_unique.py:157
Function
test_student__unfetched_contains
(db)
tests/fields/test_fk_with_unique.py:126
Function
test_student__unfetched_getitem
(db)
tests/fields/test_fk_with_unique.py:167
Function
test_student__unfetched_len
(db)
tests/fields/test_fk_with_unique.py:147
Function
test_student__uninstantiated_await
(db)
tests/fields/test_fk_with_unique.py:119
Function
test_student__uninstantiated_create
(db)
tests/fields/test_fk_with_unique.py:104
Function
test_student__uninstantiated_iterate
(db)
tests/fields/test_fk_with_unique.py:111
Function
test_student_offset
(db)
tests/fields/test_fk_with_unique.py:277
Function
test_student_order_by
(db)
tests/fields/test_fk_with_unique.py:259
Function
test_subquery_filter
(db)
tests/test_queryset.py:782
Function
test_subquery_select
(db)
tests/test_queryset.py:771
Function
test_sum_filter_group_by
(db, group_by_data)
tests/test_group_by.py:89
Function
test_sum_group_by
(db, group_by_data)
tests/test_group_by.py:61
Function
test_sum_group_by_with_join
(db, group_by_data)
tests/test_group_by.py:76
Function
test_sum_values_list_filter_group_by
(db, group_by_data)
tests/test_group_by.py:211
Function
test_sum_values_list_group_by
(db, group_by_data)
tests/test_group_by.py:184
Function
test_sum_values_list_group_by_with_join
(db, group_by_data)
tests/test_group_by.py:201
Function
test_table_and_row_comment_generation
()
tests/schema/test_generate_schema.py:353
Function
test_team
(db, pydantic_setup)
tests/contrib/test_pydantic.py:1252
Function
test_team_schema
(db, pydantic_setup)
tests/contrib/test_pydantic.py:861
Function
test_three_nested_transactions
Test three levels of nested transactions.
tests/test_transactions.py:188
Function
test_through_schema_none_without_schema
M2M field without Meta.schema has through_schema=None.
tests/migrations/test_schema_qualified_migrations.py:716
Function
test_through_schema_set_on_backward_m2m_field
Backward (auto-generated) M2M field gets through_schema from declaring model.
tests/migrations/test_schema_qualified_migrations.py:708
Function
test_through_schema_set_on_forward_m2m_field
Forward M2M field gets through_schema from declaring model.
tests/migrations/test_schema_qualified_migrations.py:701
Function
test_time_cast
Test time field accepts ISO format string (postgres).
tests/fields/test_time.py:474
Function
test_time_create
Test creating time fields (postgres).
tests/fields/test_time.py:462
Function
test_time_field_nullability
()
tests/fields/type_checks.py:140
Function
test_time_get
Test getting by time field (postgres).
tests/fields/test_time.py:509
Function
test_time_mysql_cast
Test time field accepts ISO format string (mysql returns timedelta).
tests/fields/test_time.py:541
Function
test_time_mysql_create
Test creating time fields (mysql returns timedelta).
tests/fields/test_time.py:525
Function
test_time_mysql_get
Test getting by time field (mysql returns timedelta).
tests/fields/test_time.py:589
Function
test_time_mysql_values
Test time field in values() query (mysql returns timedelta).
tests/fields/test_time.py:557
Function
test_time_mysql_values_list
Test time field in values_list() query (mysql returns timedelta).
tests/fields/test_time.py:573
Function
test_time_values
Test time field in values() query (postgres).
tests/fields/test_time.py:485
Function
test_time_values_list
Test time field in values_list() query (postgres).
tests/fields/test_time.py:497
Function
test_timedelta_create
Test creating timedelta fields.
tests/fields/test_time.py:696
Function
test_timedelta_field_nullability
()
tests/fields/type_checks.py:147
Function
test_timedelta_get
Test getting by timedelta field.
tests/fields/test_time.py:727
Function
test_timedelta_values
Test timedelta field in values() query.
tests/fields/test_time.py:709
Function
test_timedelta_values_list
Test timedelta field in values_list() query.
tests/fields/test_time.py:718
Function
test_timefield_auto_now_add_only
Test TimeField with only auto_now_add=True.
tests/test_datetime_field_bug.py:78
Function
test_timefield_auto_now_only
Test TimeField with only auto_now=True.
tests/test_datetime_field_bug.py:71
Function
test_timefield_both_flags_raises
Test TimeField raises when both auto_now and auto_now_add are True.
tests/test_datetime_field_bug.py:85
Function
test_timezone
(tz_env)
tests/fields/test_time.py:761
Function
test_timezone_now_returns_aware_when_use_tz_true
Test timezone.now() returns aware datetime in UTC when use_tz=True.
tests/fields/test_time.py:249
Function
test_timezone_now_returns_naive_when_use_tz_false
Test timezone.now() returns naive datetime when use_tz=False.
tests/fields/test_time.py:239
Function
test_topological_sort_all_models
Sorting all registered models succeeds and includes every model.
tests/test_truncate.py:48
← previous
next →
3,501–3,600 of 3,850, ranked by callers