MCPcopy Create free account

hub / github.com/tortoise/tortoise-orm / functions

Functions3,850 in github.com/tortoise/tortoise-orm

Functiontest_annotate_order_expression
(db, intfields_data)
tests/test_queryset.py:602
Functiontest_annotate_order_rawsql
(db, intfields_data)
tests/test_queryset.py:610
Functiontest_annotation_field_priorior_to_model_field
(db)
tests/test_queryset.py:812
Functiontest_annotation_in_case_when
(db)
tests/test_filtering.py:514
Functiontest_annotation_in_when_annotation
(db, intfields_data)
tests/test_case_when.py:204
Functiontest_annotations
(db)
tests/test_queryset_reuse.py:11
Functiontest_annotations_in_flat_values_list
(db)
tests/test_queryset.py:873
Functiontest_application_name
()
tests/backends/test_postgres.py:122
Functiontest_apply_dry_run_does_not_clone_state
Verify that apply(dry_run=True) never calls State.clone().
tests/migrations/test_state_performance.py:66
Methodtest_apps_cleared_on_async_context_exit
Apps cleared on context exit.
tests/test_context.py:188
Methodtest_argument
(self, Field: Any)
tests/test_primary_key.py:231
Functiontest_arithmetic
Test F expression arithmetic operations.
tests/test_f.py:8
Functiontest_array_length
Test array length filter.
tests/fields/test_array.py:180
Functiontest_assign_by_id
(db, uuid_models)
tests/fields/test_fk_uuid.py:349
Functiontest_assign_by_name
(db, uuid_models)
tests/fields/test_fk_uuid.py:362
Functiontest_assign_none_by_id
(db, uuid_models)
tests/fields/test_fk_uuid.py:375
Functiontest_assign_none_by_id_fails
(db, uuid_models)
tests/fields/test_fk_uuid.py:401
Functiontest_assign_none_by_name
(db, uuid_models)
tests/fields/test_fk_uuid.py:388
Functiontest_assign_none_by_name_fails
(db, uuid_models)
tests/fields/test_fk_uuid.py:411
Methodtest_async_context_manager_resets_on_exit
Async context manager resets on exit.
tests/test_context.py:163
Methodtest_async_context_manager_sets_current_context
Async context manager sets current context.
tests/test_context.py:152
Functiontest_async_default_change
(db)
tests/test_callable_default.py:22
Functiontest_async_iter
(db, intfields_data)
tests/test_queryset.py:483
Functiontest_asyncpg_connection_params
()
tests/backends/test_connection_params.py:58
Functiontest_asyncpg_index_safe
()
tests/schema/test_generate_schema.py:1393
Functiontest_asyncpg_index_unsafe
()
tests/schema/test_generate_schema.py:1360
Functiontest_asyncpg_m2m_no_auto_create
()
tests/schema/test_generate_schema.py:1426
Functiontest_asyncpg_noid
()
tests/schema/test_generate_schema.py:1055
Functiontest_asyncpg_pgfields_safe
()
tests/schema/test_generate_schema.py:1508
Functiontest_asyncpg_pgfields_unsafe
()
tests/schema/test_generate_schema.py:1486
Functiontest_asyncpg_schema
()
tests/schema/test_generate_schema.py:1140
Functiontest_asyncpg_schema_no_db_constraint
()
tests/schema/test_generate_schema.py:1083
Functiontest_asyncpg_schema_qualified_safe
Postgres (asyncpg) should produce schema-qualified names with CREATE SCHEMA.
tests/schema/test_generate_schema.py:2059
Functiontest_asyncpg_schema_safe
()
tests/schema/test_generate_schema.py:1250
Functiontest_asyncpg_table_and_row_comment_generation
()
tests/schema/test_generate_schema.py:1067
Functiontest_attribute_error
Test capabilities raise AttributeError on invalid attribute assignment.
tests/backends/test_capabilities.py:48
Functiontest_auto_now_add_field_describe
Test that auto_now_add field describes correctly for migrations.
tests/test_datetime_migration_integration.py:33
Functiontest_auto_now_field_describe
Test that auto_now field describes correctly for migrations.
tests/test_datetime_migration_integration.py:22
Functiontest_autodetector_adds_relation_dependency
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:141
Functiontest_autodetector_field_rename
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_autodetector.py:251
Functiontest_autodetector_generates_create_schema
When a model with new schema appears, CreateSchema is emitted.
tests/migrations/test_schema_qualified_migrations.py:404
Functiontest_autodetector_generates_drop_schema
When a schema is no longer used, DropSchema is emitted.
tests/migrations/test_schema_qualified_migrations.py:418
Functiontest_autodetector_initial_migration
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:81
Functiontest_autodetector_model_rename
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_autodetector.py:206
Functiontest_autodetector_multi_leaf_dependencies
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:174
Functiontest_autodetector_multiple_schemas_sorted
Multiple new schemas are created in sorted order.
tests/migrations/test_schema_qualified_migrations.py:467
Functiontest_autodetector_no_changes
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_autodetector.py:368
Functiontest_autodetector_no_duplicate_schemas
Two models in the same schema produce only one CreateSchema.
tests/migrations/test_schema_qualified_migrations.py:432
Functiontest_autodetector_no_schema_ops_for_plain_models
Models without schema produce no schema operations.
tests/migrations/test_schema_qualified_migrations.py:455
Functiontest_autodetector_relation_dependency_model_class
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:328
Functiontest_autodetector_skips_unmigrated_relation_dependency
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:296
Functiontest_autodetector_uses_latest_dependency
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_autodetector.py:111
Functiontest_avg_filter_group_by
(db, group_by_data)
tests/test_group_by.py:130
Functiontest_avg_group_by
(db, group_by_data)
tests/test_group_by.py:101
Functiontest_avg_group_by_with_join
(db, group_by_data)
tests/test_group_by.py:117
Functiontest_avg_values_list_filter_group_by
(db, group_by_data)
tests/test_group_by.py:251
Functiontest_avg_values_list_group_by
(db, group_by_data)
tests/test_group_by.py:223
Functiontest_avg_values_list_group_by_with_join
(db, group_by_data)
tests/test_group_by.py:241
Functiontest_await
( mocked_close_connections: AsyncMock, mocked_init: AsyncMock, db, )
tests/contrib/test_fastapi.py:14
Functiontest_await_use_tz_false
( mocked_close_connections: AsyncMock, mocked_init: AsyncMock, db, )
tests/contrib/test_fastapi.py:44
Functiontest_backward_relations_annotated_kept
backward_relations=False should keep explicitly annotated ReverseRelation fields.
tests/contrib/test_pydantic.py:118
Functiontest_backward_relations_with_meta_override
(db, pydantic_setup)
tests/contrib/test_pydantic.py:83
Functiontest_backward_relations_with_pydantic_meta
(db, pydantic_setup)
tests/contrib/test_pydantic.py:100
Functiontest_bad
()
tests/model_setup/test__models__.py:78
Functiontest_bad_charset
Test that invalid charset raises ConnectionError.
tests/backends/test_mysql.py:30
Functiontest_bad_models
()
tests/model_setup/test_init.py:498
Functiontest_bad_ordering
(db, intfields_data)
tests/test_queryset.py:531
Functiontest_bad_values
(db, intfields_data)
tests/test_queryset.py:560
Functiontest_bad_values_list
(db, intfields_data)
tests/test_queryset.py:566
Functiontest_base_add_constraint_with_condition_raises
Non-PostgreSQL backends raise NotImplementedError for partial unique constraints.
tests/migrations/test_schema_editor_constraints.py:575
Functiontest_base_add_field_qualified
ALTER TABLE ADD COLUMN uses schema-qualified name.
tests/migrations/test_schema_qualified_migrations.py:198
Functiontest_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
Functiontest_base_create_model_with_schema
Base editor qualifies CREATE TABLE with schema.
tests/migrations/test_schema_qualified_migrations.py:125
Functiontest_base_create_model_without_schema
Without Meta.schema, output is unchanged (backward compatible).
tests/migrations/test_schema_qualified_migrations.py:138
Functiontest_base_delete_model_qualified
DROP TABLE uses schema-qualified name.
tests/migrations/test_schema_qualified_migrations.py:185
Functiontest_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
Functiontest_base_fk_references_qualified
FK REFERENCES uses schema-qualified target table.
tests/migrations/test_schema_qualified_migrations.py:159
Functiontest_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
Functiontest_base_m2m_table_qualified
M2M through table is schema-qualified.
tests/migrations/test_schema_qualified_migrations.py:172
Functiontest_base_rename_table_qualified
RENAME TABLE uses schema-qualified names.
tests/migrations/test_schema_qualified_migrations.py:211
Functiontest_basic
Test basic model inheritance with abstract base model.
tests/test_inheritance.py:7
Functiontest_basic
Test basic CRUD operations with Tournament model.
tests/test_basic.py:7
Functiontest_basic_example_script
Test that the basic example script runs successfully.
tests/contrib/test_decorator.py:13
Functiontest_basic_init
()
tests/model_setup/test_init.py:48
Functiontest_basic_oldstyle
Test OldStyleModel with external_id field.
tests/test_basic.py:30
Functiontest_basic_test_client
(client)
examples/sanic/_tests.py:34
Functiontest_big_int_fields_cast
(db)
tests/fields/test_int.py:171
Functiontest_big_int_fields_create
(db)
tests/fields/test_int.py:149
Functiontest_big_int_fields_empty
(db)
tests/fields/test_int.py:143
Functiontest_big_int_fields_f_expression
(db)
tests/fields/test_int.py:192
Functiontest_big_int_fields_min
(db)
tests/fields/test_int.py:160
Functiontest_big_int_fields_values
(db)
tests/fields/test_int.py:178
Functiontest_big_int_fields_values_list
(db)
tests/fields/test_int.py:185
Functiontest_binary_field_nullability
()
tests/fields/type_checks.py:167
Functiontest_bool_field_nullability
()
tests/fields/type_checks.py:112
Functiontest_bool_for_relation_fetched_false
(db)
tests/test_relations.py:123
Functiontest_bool_for_relation_fetched_true
(db)
tests/test_relations.py:131
Functiontest_bool_for_relation_new_object
(db)
tests/test_relations.py:106
Functiontest_bool_for_relation_old_object
(db)
tests/test_relations.py:114
Methodtest_bool_is_false
(self)
tests/test_db_default_insert.py:35
← previousnext →2,101–2,200 of 3,850, ranked by callers