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_annotate_order_expression
(db, intfields_data)
tests/test_queryset.py:602
Function
test_annotate_order_rawsql
(db, intfields_data)
tests/test_queryset.py:610
Function
test_annotation_field_priorior_to_model_field
(db)
tests/test_queryset.py:812
Function
test_annotation_in_case_when
(db)
tests/test_filtering.py:514
Function
test_annotation_in_when_annotation
(db, intfields_data)
tests/test_case_when.py:204
Function
test_annotations
(db)
tests/test_queryset_reuse.py:11
Function
test_annotations_in_flat_values_list
(db)
tests/test_queryset.py:873
Function
test_application_name
()
tests/backends/test_postgres.py:122
Function
test_apply_dry_run_does_not_clone_state
Verify that apply(dry_run=True) never calls State.clone().
tests/migrations/test_state_performance.py:66
Method
test_apps_cleared_on_async_context_exit
Apps cleared on context exit.
tests/test_context.py:188
Method
test_argument
(self, Field: Any)
tests/test_primary_key.py:231
Function
test_arithmetic
Test F expression arithmetic operations.
tests/test_f.py:8
Function
test_array_length
Test array length filter.
tests/fields/test_array.py:180
Function
test_assign_by_id
(db, uuid_models)
tests/fields/test_fk_uuid.py:349
Function
test_assign_by_name
(db, uuid_models)
tests/fields/test_fk_uuid.py:362
Function
test_assign_none_by_id
(db, uuid_models)
tests/fields/test_fk_uuid.py:375
Function
test_assign_none_by_id_fails
(db, uuid_models)
tests/fields/test_fk_uuid.py:401
Function
test_assign_none_by_name
(db, uuid_models)
tests/fields/test_fk_uuid.py:388
Function
test_assign_none_by_name_fails
(db, uuid_models)
tests/fields/test_fk_uuid.py:411
Method
test_async_context_manager_resets_on_exit
Async context manager resets on exit.
tests/test_context.py:163
Method
test_async_context_manager_sets_current_context
Async context manager sets current context.
tests/test_context.py:152
Function
test_async_default_change
(db)
tests/test_callable_default.py:22
Function
test_async_iter
(db, intfields_data)
tests/test_queryset.py:483
Function
test_asyncpg_connection_params
()
tests/backends/test_connection_params.py:58
Function
test_asyncpg_index_safe
()
tests/schema/test_generate_schema.py:1393
Function
test_asyncpg_index_unsafe
()
tests/schema/test_generate_schema.py:1360
Function
test_asyncpg_m2m_no_auto_create
()
tests/schema/test_generate_schema.py:1426
Function
test_asyncpg_noid
()
tests/schema/test_generate_schema.py:1055
Function
test_asyncpg_pgfields_safe
()
tests/schema/test_generate_schema.py:1508
Function
test_asyncpg_pgfields_unsafe
()
tests/schema/test_generate_schema.py:1486
Function
test_asyncpg_schema
()
tests/schema/test_generate_schema.py:1140
Function
test_asyncpg_schema_no_db_constraint
()
tests/schema/test_generate_schema.py:1083
Function
test_asyncpg_schema_qualified_safe
Postgres (asyncpg) should produce schema-qualified names with CREATE SCHEMA.
tests/schema/test_generate_schema.py:2059
Function
test_asyncpg_schema_safe
()
tests/schema/test_generate_schema.py:1250
Function
test_asyncpg_table_and_row_comment_generation
()
tests/schema/test_generate_schema.py:1067
Function
test_attribute_error
Test capabilities raise AttributeError on invalid attribute assignment.
tests/backends/test_capabilities.py:48
Function
test_auto_now_add_field_describe
Test that auto_now_add field describes correctly for migrations.
tests/test_datetime_migration_integration.py:33
Function
test_auto_now_field_describe
Test that auto_now field describes correctly for migrations.
tests/test_datetime_migration_integration.py:22
Function
test_autodetector_adds_relation_dependency
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:141
Function
test_autodetector_field_rename
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_autodetector.py:251
Function
test_autodetector_generates_create_schema
When a model with new schema appears, CreateSchema is emitted.
tests/migrations/test_schema_qualified_migrations.py:404
Function
test_autodetector_generates_drop_schema
When a schema is no longer used, DropSchema is emitted.
tests/migrations/test_schema_qualified_migrations.py:418
Function
test_autodetector_initial_migration
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:81
Function
test_autodetector_model_rename
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_autodetector.py:206
Function
test_autodetector_multi_leaf_dependencies
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:174
Function
test_autodetector_multiple_schemas_sorted
Multiple new schemas are created in sorted order.
tests/migrations/test_schema_qualified_migrations.py:467
Function
test_autodetector_no_changes
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_autodetector.py:368
Function
test_autodetector_no_duplicate_schemas
Two models in the same schema produce only one CreateSchema.
tests/migrations/test_schema_qualified_migrations.py:432
Function
test_autodetector_no_schema_ops_for_plain_models
Models without schema produce no schema operations.
tests/migrations/test_schema_qualified_migrations.py:455
Function
test_autodetector_relation_dependency_model_class
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:328
Function
test_autodetector_skips_unmigrated_relation_dependency
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:296
Function
test_autodetector_uses_latest_dependency
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:111
Function
test_avg_filter_group_by
(db, group_by_data)
tests/test_group_by.py:130
Function
test_avg_group_by
(db, group_by_data)
tests/test_group_by.py:101
Function
test_avg_group_by_with_join
(db, group_by_data)
tests/test_group_by.py:117
Function
test_avg_values_list_filter_group_by
(db, group_by_data)
tests/test_group_by.py:251
Function
test_avg_values_list_group_by
(db, group_by_data)
tests/test_group_by.py:223
Function
test_avg_values_list_group_by_with_join
(db, group_by_data)
tests/test_group_by.py:241
Function
test_await
( mocked_close_connections: AsyncMock, mocked_init: AsyncMock, db, )
tests/contrib/test_fastapi.py:14
Function
test_await_use_tz_false
( mocked_close_connections: AsyncMock, mocked_init: AsyncMock, db, )
tests/contrib/test_fastapi.py:44
Function
test_backward_relations_annotated_kept
backward_relations=False should keep explicitly annotated ReverseRelation fields.
tests/contrib/test_pydantic.py:118
Function
test_backward_relations_with_meta_override
(db, pydantic_setup)
tests/contrib/test_pydantic.py:83
Function
test_backward_relations_with_pydantic_meta
(db, pydantic_setup)
tests/contrib/test_pydantic.py:100
Function
test_bad
()
tests/model_setup/test__models__.py:78
Function
test_bad_charset
Test that invalid charset raises ConnectionError.
tests/backends/test_mysql.py:30
Function
test_bad_models
()
tests/model_setup/test_init.py:498
Function
test_bad_ordering
(db, intfields_data)
tests/test_queryset.py:531
Function
test_bad_values
(db, intfields_data)
tests/test_queryset.py:560
Function
test_bad_values_list
(db, intfields_data)
tests/test_queryset.py:566
Function
test_base_add_constraint_with_condition_raises
Non-PostgreSQL backends raise NotImplementedError for partial unique constraints.
tests/migrations/test_schema_editor_constraints.py:575
Function
test_base_add_field_qualified
ALTER TABLE ADD COLUMN uses schema-qualified name.
tests/migrations/test_schema_qualified_migrations.py:198
Function
test_base_alter_field_description_change_noop
Base editor should emit no SQL for description-only changes (unsupported).
tests/migrations/test_schema_editor_backends.py:974
Function
test_base_create_model_with_schema
Base editor qualifies CREATE TABLE with schema.
tests/migrations/test_schema_qualified_migrations.py:125
Function
test_base_create_model_without_schema
Without Meta.schema, output is unchanged (backward compatible).
tests/migrations/test_schema_qualified_migrations.py:138
Function
test_base_delete_model_qualified
DROP TABLE uses schema-qualified name.
tests/migrations/test_schema_qualified_migrations.py:185
Function
test_base_editor_bool_db_default_still_uses_integer
Non-PostgreSQL backends should still emit DEFAULT 1 for BooleanField(db_default=True).
tests/migrations/test_schema_editor_backends.py:88
Function
test_base_fk_references_qualified
FK REFERENCES uses schema-qualified target table.
tests/migrations/test_schema_qualified_migrations.py:159
Function
test_base_get_unique_constraint_names_from_db_returns_empty
Base _get_unique_constraint_names_from_db returns [] (no introspection).
tests/migrations/test_schema_editor_constraints.py:110
Function
test_base_m2m_table_qualified
M2M through table is schema-qualified.
tests/migrations/test_schema_qualified_migrations.py:172
Function
test_base_rename_table_qualified
RENAME TABLE uses schema-qualified names.
tests/migrations/test_schema_qualified_migrations.py:211
Function
test_basic
Test basic model inheritance with abstract base model.
tests/test_inheritance.py:7
Function
test_basic
Test basic CRUD operations with Tournament model.
tests/test_basic.py:7
Function
test_basic_example_script
Test that the basic example script runs successfully.
tests/contrib/test_decorator.py:13
Function
test_basic_init
()
tests/model_setup/test_init.py:48
Function
test_basic_oldstyle
Test OldStyleModel with external_id field.
tests/test_basic.py:30
Function
test_basic_test_client
(client)
examples/sanic/_tests.py:34
Function
test_big_int_fields_cast
(db)
tests/fields/test_int.py:171
Function
test_big_int_fields_create
(db)
tests/fields/test_int.py:149
Function
test_big_int_fields_empty
(db)
tests/fields/test_int.py:143
Function
test_big_int_fields_f_expression
(db)
tests/fields/test_int.py:192
Function
test_big_int_fields_min
(db)
tests/fields/test_int.py:160
Function
test_big_int_fields_values
(db)
tests/fields/test_int.py:178
Function
test_big_int_fields_values_list
(db)
tests/fields/test_int.py:185
Function
test_binary_field_nullability
()
tests/fields/type_checks.py:167
Function
test_bool_field_nullability
()
tests/fields/type_checks.py:112
Function
test_bool_for_relation_fetched_false
(db)
tests/test_relations.py:123
Function
test_bool_for_relation_fetched_true
(db)
tests/test_relations.py:131
Function
test_bool_for_relation_new_object
(db)
tests/test_relations.py:106
Function
test_bool_for_relation_old_object
(db)
tests/test_relations.py:114
Method
test_bool_is_false
(self)
tests/test_db_default_insert.py:35
← previous
next →
2,101–2,200 of 3,850, ranked by callers