MCPcopy Create free account

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

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

Functiontest_migrate_passes_target
(monkeypatch: pytest.MonkeyPatch, tmp_path: Path)
tests/cli/test_cli.py:139
Functiontest_migration_apply_and_unapply_flags
()
tests/migrations/test_runtime_migrations.py:343
Functiontest_migration_field_serialization
Test the actual migration field string that would be generated.
tests/test_datetime_migration_integration.py:53
Functiontest_migration_unapply_requires_reversible
()
tests/migrations/test_runtime_migrations.py:373
Functiontest_minimal__by_name__awaited
(db)
tests/fields/test_fk.py:69
Functiontest_minimal__by_name__created_prefetched
(db)
tests/fields/test_fk.py:44
Functiontest_minimal__by_name__re_awaited
(db)
tests/fields/test_fk.py:60
Functiontest_minimal__by_name__unfetched
(db)
tests/fields/test_fk.py:52
Functiontest_minimal__create_by_id
(db)
tests/fields/test_fk.py:27
Functiontest_minimal__create_by_name
(db)
tests/fields/test_fk.py:35
Functiontest_minimal__fetched_bool
(db)
tests/fields/test_fk.py:247
Functiontest_minimal__fetched_bool
(db, uuid_models)
tests/fields/test_fk_uuid.py:276
Functiontest_minimal__fetched_contains
(db)
tests/fields/test_fk.py:223
Functiontest_minimal__fetched_contains
(db, uuid_models)
tests/fields/test_fk_uuid.py:249
Functiontest_minimal__fetched_getitem
(db)
tests/fields/test_fk.py:257
Functiontest_minimal__fetched_getitem
(db, uuid_models)
tests/fields/test_fk_uuid.py:287
Functiontest_minimal__fetched_iter
(db)
tests/fields/test_fk.py:231
Functiontest_minimal__fetched_iter
(db, uuid_models)
tests/fields/test_fk_uuid.py:258
Functiontest_minimal__fetched_len
(db)
tests/fields/test_fk.py:239
Functiontest_minimal__fetched_len
(db, uuid_models)
tests/fields/test_fk_uuid.py:267
Functiontest_minimal__instantiated_await
(db)
tests/fields/test_fk.py:217
Functiontest_minimal__instantiated_create
(db)
tests/fields/test_fk.py:197
Functiontest_minimal__instantiated_create_wrong_type
(db)
tests/fields/test_fk.py:203
Functiontest_minimal__instantiated_iterate
(db)
tests/fields/test_fk.py:210
Functiontest_minimal__unfetched_bool
(db)
tests/fields/test_fk.py:177
Functiontest_minimal__unfetched_contains
(db)
tests/fields/test_fk.py:146
Functiontest_minimal__unfetched_getitem
(db)
tests/fields/test_fk.py:187
Functiontest_minimal__unfetched_iter
(db)
tests/fields/test_fk.py:156
Functiontest_minimal__unfetched_len
(db)
tests/fields/test_fk.py:167
Functiontest_minimal__uninstantiated_await
(db)
tests/fields/test_fk.py:139
Functiontest_minimal__uninstantiated_create
(db)
tests/fields/test_fk.py:124
Functiontest_minimal__uninstantiated_iterate
(db)
tests/fields/test_fk.py:131
Functiontest_minrelation
()
tests/schema/test_generate_schema.py:187
Functiontest_model_state_skips_fk_reference_fields
()
tests/migrations/test_state_generator.py:14
Methodtest_model_uses_context_connections_when_active
Model uses context when context is active.
tests/test_context.py:411
Functiontest_model_with_indexes_meta
(db)
tests/fields/test_db_index.py:128
Functiontest_model_with_relations_exclude
(db)
tests/contrib/test_pydantic.py:2051
Functiontest_model_with_relations_exclude_readonly
(db)
tests/contrib/test_pydantic.py:2061
Functiontest_model_with_relations_reused
(db)
tests/contrib/test_pydantic.py:2043
Functiontest_modify_dataset
(db, intfields_data)
tests/test_queryset.py:163
Functiontest_more_than_two_dots_in_reference_init
()
tests/model_setup/test_bad_relation_reference.py:128
Functiontest_mssql_alter_field_drop_default
MSSQL should use dynamic SQL to find and drop default constraint.
tests/migrations/test_schema_editor_backends.py:336
Functiontest_mssql_alter_field_max_length
MSSQL alter_field changing max_length should use ALTER COLUMN with full type.
tests/migrations/test_schema_editor_backends.py:789
Functiontest_mssql_alter_field_null_to_not_null
MSSQL should use ALTER COLUMN [col] type NOT NULL for nullability change.
tests/migrations/test_schema_editor_backends.py:277
Functiontest_mssql_alter_field_qualified
MSSQL ALTER TABLE uses schema-qualified name.
tests/migrations/test_schema_qualified_migrations.py:611
Functiontest_mssql_alter_field_set_default
MSSQL should use ADD DEFAULT ... FOR [col] instead of ALTER COLUMN SET DEFAULT.
tests/migrations/test_schema_editor_backends.py:308
Functiontest_mssql_bool_db_default_still_uses_integer
MSSQL (BIT column) should still emit DEFAULT 1 for BooleanField(db_default=True).
tests/migrations/test_schema_editor_backends.py:130
Functiontest_mssql_create_table_with_schema
()
tests/migrations/test_schema_qualified_migrations.py:254
Functiontest_mssql_delete_constraint_uses_brackets
MSSQL DELETE_CONSTRAINT_TEMPLATE should use bracket quoting.
tests/migrations/test_schema_editor_backends.py:464
Functiontest_mssql_delete_model_qualified
MSSQL DROP TABLE uses schema-qualified name.
tests/migrations/test_schema_qualified_migrations.py:628
Functiontest_mssql_non_self_referencing_fk_keeps_cascade
MSSQL should keep CASCADE for non-self-referencing FKs.
tests/migrations/test_schema_editor_backends.py:416
Functiontest_mssql_remove_field_cleanup_sql_filters_schema
MSSQL remove_field cleanup SQL should filter sys.tables by schema.
tests/migrations/test_schema_qualified_migrations.py:589
Functiontest_mssql_remove_field_drops_dependencies
()
tests/migrations/test_schema_editor_mssql.py:21
Functiontest_mssql_rename_table_with_schema
MSSQL sp_rename second argument must be unqualified new name.
tests/migrations/test_schema_qualified_migrations.py:545
Functiontest_mssql_rename_table_without_schema
MSSQL sp_rename without schema should still work.
tests/migrations/test_schema_qualified_migrations.py:562
Functiontest_mssql_self_referencing_fk_downgrades_cascade
MSSQL should use NO ACTION for self-referencing FK instead of CASCADE.
tests/migrations/test_schema_editor_backends.py:380
Functiontest_mssql_unique_constraint_create_uses_brackets
MSSQL UNIQUE_CONSTRAINT_CREATE_TEMPLATE should use bracket quoting.
tests/migrations/test_schema_editor_backends.py:485
Functiontest_multi_m2m_fields_in_a_model
()
tests/schema/test_generate_schema.py:340
Functiontest_multi_when
(db, intfields_data)
tests/test_case_when.py:36
Functiontest_multiple_objects_returned
()
tests/test_queryset.py:900
Functiontest_multiple_pk
()
tests/model_setup/test_init.py:204
Functiontest_mysql_add_field_with_sql_default_expression
MySQL add_field with SqlDefault should split into ADD COLUMN + ALTER SET DEFAULT.
tests/migrations/test_schema_editor_backends.py:534
Functiontest_mysql_alter_field_description_change
MySQL should emit MODIFY COLUMN with COMMENT when description changes.
tests/migrations/test_schema_editor_backends.py:944
Functiontest_mysql_alter_field_max_length
MySQL alter_field changing max_length should use MODIFY COLUMN.
tests/migrations/test_schema_editor_backends.py:761
Functiontest_mysql_alter_field_max_length_preserves_db_default
MySQL MODIFY COLUMN for max_length change must re-emit SET DEFAULT.
tests/migrations/test_schema_editor_backends.py:822
Functiontest_mysql_alter_field_not_null_to_null
MySQL should use MODIFY COLUMN with type for not-null->null change.
tests/migrations/test_schema_editor_backends.py:214
Functiontest_mysql_alter_field_null_and_description_combined
MySQL should emit a single MODIFY COLUMN with both NULL and COMMENT.
tests/migrations/test_schema_editor_backends.py:1006
Functiontest_mysql_alter_field_null_change_preserves_db_default
MySQL MODIFY COLUMN for null change must preserve DEFAULT in the same statement.
tests/migrations/test_schema_editor_backends.py:852
Functiontest_mysql_alter_field_null_change_preserves_description
MySQL MODIFY COLUMN for null change must preserve existing COMMENT.
tests/migrations/test_schema_editor_backends.py:1038
Functiontest_mysql_alter_field_null_to_not_null
MySQL should use MODIFY COLUMN with type for null->not-null change.
tests/migrations/test_schema_editor_backends.py:183
Functiontest_mysql_alter_field_set_default
MySQL SET DEFAULT should use backtick quoting.
tests/migrations/test_schema_editor_backends.py:244
Functiontest_mysql_alter_field_uses_introspected_legacy_name
MySQL AlterField unique=True->False should use the introspected index name.
tests/migrations/test_operations_database.py:372
Functiontest_mysql_basic
()
tests/backends/test_db_url.py:254
Functiontest_mysql_connection_params
()
tests/backends/test_connection_params.py:17
Functiontest_mysql_create_index
()
tests/schema/test_generate_schema.py:614
Functiontest_mysql_create_table_with_schema
()
tests/migrations/test_schema_qualified_migrations.py:242
Functiontest_mysql_encoded_password
()
tests/backends/test_db_url.py:270
Functiontest_mysql_func_rand
(db, intfields)
tests/contrib/test_functions.py:18
Functiontest_mysql_func_rand_with_seed
(db, intfields)
tests/contrib/test_functions.py:26
Functiontest_mysql_index_safe
()
tests/schema/test_generate_schema.py:928
Functiontest_mysql_index_unsafe
()
tests/schema/test_generate_schema.py:948
Functiontest_mysql_literal_percent_in_password_is_corrupted
()
tests/backends/test_db_url.py:233
Functiontest_mysql_m2m_no_auto_create
()
tests/schema/test_generate_schema.py:968
Functiontest_mysql_minrelation
()
tests/schema/test_generate_schema.py:625
Functiontest_mysql_no_db
()
tests/backends/test_db_url.py:286
Functiontest_mysql_no_port
()
tests/backends/test_db_url.py:302
Functiontest_mysql_noid
()
tests/schema/test_generate_schema.py:602
Functiontest_mysql_nonint_port
()
tests/backends/test_db_url.py:318
Functiontest_mysql_params
()
tests/backends/test_db_url.py:341
Functiontest_mysql_pre_encoded_percent_in_password
()
tests/backends/test_db_url.py:242
Functiontest_mysql_rename_table_with_schema
MySQL RENAME TABLE uses schema-qualified names on both sides.
tests/migrations/test_schema_qualified_migrations.py:641
Functiontest_mysql_schema
()
tests/schema/test_generate_schema.py:710
Functiontest_mysql_schema_no_db_constraint
()
tests/schema/test_generate_schema.py:663
Functiontest_mysql_schema_qualified
MySQL should produce schema-qualified names with backtick quoting.
tests/schema/test_generate_schema.py:2128
Functiontest_mysql_schema_safe
()
tests/schema/test_generate_schema.py:817
Functiontest_mysql_session_timezone_uses_configured_tz
Test that MySQL session timezone reflects the configured timezone, not UTC. Regression test for https://github.com/tortoise/tortoise-orm/issues/2
tests/backends/test_connection_params.py:142
Functiontest_mysql_special_chars_in_password
()
tests/backends/test_db_url.py:199
Functiontest_mysql_table_and_row_comment_generation
()
tests/schema/test_generate_schema.py:649
Functiontest_mysql_testing
()
tests/backends/test_db_url.py:323
Functiontest_mysql_unbalanced_brackets_in_password
()
tests/backends/test_db_url.py:216
← previousnext →3,001–3,100 of 3,850, ranked by callers