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_create
(db)
tests/fields/test_text.py:15
Function
test_create
Test array field creation and retrieval.
tests/fields/test_array.py:18
Function
test_create
(db)
tests/fields/test_decimal.py:42
Function
test_create
(db)
tests/fields/test_uuid.py:16
Function
test_create
(db)
tests/fields/test_float.py:17
Method
test_create_all_explicit_values
When all values are provided, cached query path is used (no DEFAULT keyword).
tests/test_db_default_insert.py:122
Function
test_create_by_id
(db, uuid_models)
tests/fields/test_fk_uuid.py:58
Function
test_create_by_name
(db, uuid_models)
tests/fields/test_fk_uuid.py:67
Function
test_create_connection_db_info_not_str
( mocked_discover_client_class, mocked_expand_db_url, mocked_get_db_info, conn_handler, )
tests/test_connection.py:185
Function
test_create_connection_db_info_str
( mocked_discover_client_class, mocked_expand_db_url, mocked_get_db_info, conn_handler, )
tests/test_connection.py:155
Function
test_create_few_fields
(benchmark)
tests/benchmarks/test_create.py:7
Function
test_create_index
()
tests/schema/test_generate_schema.py:244
Function
test_create_index_with_custom_name
()
tests/schema/test_generate_schema.py:255
Function
test_create_many_fields
(benchmark, gen_many_fields_data)
tests/benchmarks/test_create.py:19
Function
test_create_model_and_delete_model
CreateModel creates a real table; DeleteModel drops it.
tests/migrations/test_operations_real_db.py:91
Function
test_create_model_generates_generated_column_sql
()
tests/migrations/test_schema_editor_sql.py:110
Function
test_create_model_generates_table_sql
()
tests/migrations/test_schema_editor_sql.py:43
Function
test_create_model_includes_db_default
CreateModel should include DEFAULT clause for fields with db_default.
tests/migrations/test_schema_editor_sql.py:232
Function
test_create_model_operation_runs_sql
()
tests/migrations/test_operations_database.py:69
Function
test_create_model_uses_inline_unique
CREATE TABLE should use inline UNIQUE for unique fields.
tests/migrations/test_operations_database.py:271
Function
test_create_model_with_fk_to_not_yet_created_model
Regression test: CreateModel should not raise when the FK target model hasn't been added to state yet (simulates alphabetical ordering where e
tests/migrations/test_operations_state.py:148
Method
test_create_no_args_applies_db_defaults_and_persists
(self, db)
tests/test_db_default_insert.py:94
Function
test_create_not_null
(db)
tests/contrib/mysql/fields.py:48
Function
test_create_not_null
(db)
tests/fields/test_uuid.py:48
Function
test_create_schema
(db)
tests/contrib/test_pydantic.py:1866
Function
test_create_schema_describe
()
tests/migrations/test_schema_qualified_migrations.py:377
Function
test_create_schema_mssql
()
tests/migrations/test_schema_qualified_migrations.py:317
Function
test_create_schema_noop_for_base
Base editor's create_schema is a no-op.
tests/migrations/test_schema_qualified_migrations.py:329
Function
test_create_schema_operation_backward
CreateSchema backward calls drop_schema.
tests/migrations/test_schema_qualified_migrations.py:364
Function
test_create_schema_operation_runs
CreateSchema operation calls schema_editor.create_schema().
tests/migrations/test_schema_qualified_migrations.py:340
Function
test_create_schema_postgres
()
tests/migrations/test_schema_qualified_migrations.py:297
Function
test_create_unique_index
Test deprecated create_unique_index parameter behavior.
tests/fields/test_m2m.py:133
Function
test_create_user
(client: TestClient)
examples/blacksheep/_tests.py:43
Function
test_create_user
(db)
examples/pytest/test_example.py:7
Method
test_create_user
(self, client: AsyncClient)
examples/fastapi/_tests.py:107
Method
test_create_user_east
(self, client_east: AsyncClient)
examples/fastapi/_tests.py:137
Method
test_create_with_no_fetch
Models with fetch_db_defaults=False still emit DEFAULT keyword. On RETURNING backends (sqlite, pg), values are populated via RETURNING
tests/test_db_default_insert.py:216
Method
test_create_with_partial_override
(self, db)
tests/test_db_default_insert.py:110
Function
test_custom_table_name_precedence
(table_name_db)
tests/test_table_name.py:47
Function
test_cycle_schema
(db, pydantic_cycle_setup)
tests/contrib/test_pydantic.py:1494
Function
test_cycle_serialisation
(db, pydantic_cycle_setup)
tests/contrib/test_pydantic.py:1601
Function
test_cyclic
()
tests/schema/test_generate_schema.py:232
Function
test_dataclass_init
()
tests/model_setup/test_init.py:66
Function
test_date_cast
Test date field accepts ISO format string.
tests/fields/test_time.py:630
Function
test_date_comparisons
(json_obj)
tests/contrib/postgres/test_json.py:102
Function
test_date_create
Test creating date fields.
tests/fields/test_time.py:616
Function
test_date_field_nullability
()
tests/fields/type_checks.py:133
Function
test_date_get
Test getting by date field.
tests/fields/test_time.py:660
Function
test_date_str
Test date field with string input and filtering/updating.
tests/fields/test_time.py:670
Function
test_date_values
Test date field in values() query.
tests/fields/test_time.py:640
Function
test_date_values_list
Test date field in values_list() query.
tests/fields/test_time.py:650
Function
test_datetime_auto_fields_match_db_with_use_tz_false
Test auto_now/auto_now_add on instance match DB when use_tz=False.
tests/fields/test_time.py:418
Function
test_datetime_auto_now_add_matches_db_on_create
Test auto_now_add value on instance after create() matches what DB returns. Note: MSSQL (DATETIME2) and MySQL (DATETIME) use timezone-naive colum
tests/fields/test_time.py:370
Function
test_datetime_auto_now_add_naive_with_use_tz_false
Test auto_now_add produces naive datetime with use_tz=False.
tests/fields/test_time.py:324
Function
test_datetime_auto_now_matches_db_on_save
Test auto_now value on instance after save() matches what DB returns. Note: MSSQL (DATETIME2) and MySQL (DATETIME) use timezone-naive columns.
tests/fields/test_time.py:393
Function
test_datetime_auto_now_naive_with_use_tz_false
Test auto_now produces naive datetime with use_tz=False.
tests/fields/test_time.py:344
Function
test_datetime_aware_behavior_unchanged_with_use_tz_true
Test aware datetime behavior is unchanged with use_tz=True.
tests/fields/test_time.py:305
Function
test_datetime_both_auto_bad
Test that setting both auto_now and auto_now_add raises ConfigurationError.
tests/fields/test_time.py:66
Function
test_datetime_cast
Test datetime field accepts ISO format string.
tests/fields/test_time.py:125
Function
test_datetime_count
Test count queries with datetime fields.
tests/fields/test_time.py:178
Function
test_datetime_create
Test creating datetime fields and auto_now/auto_now_add behavior.
tests/fields/test_time.py:75
Function
test_datetime_default_timezone
Test default timezone is UTC when use_tz=True.
tests/fields/test_time.py:189
Function
test_datetime_field_nullability
()
tests/fields/type_checks.py:126
Function
test_datetime_filter
Test filtering by datetime field.
tests/fields/test_time.py:115
Function
test_datetime_filter_by_year_month_day
Test filtering datetime by year, month, and day.
tests/fields/test_time.py:441
Function
test_datetime_get_now
Test getting datetime using timezone.now().
tests/fields/test_time.py:168
Function
test_datetime_get_utcnow
Test getting datetime using UTC now with use_tz=True.
tests/fields/test_time.py:155
Function
test_datetime_naive_roundtrip_with_use_tz_false
Test naive datetime survives round-trip with use_tz=False.
tests/fields/test_time.py:260
Function
test_datetime_set_timezone
Test setting a custom timezone via environment variable with use_tz=True.
tests/fields/test_time.py:205
Function
test_datetime_timezone
Test timezone handling with USE_TZ enabled.
tests/fields/test_time.py:223
Function
test_datetime_two_fields_naive_no_comparison_error
Test two DatetimeFields with naive datetimes (issue #631 reproduction).
tests/fields/test_time.py:281
Function
test_datetime_update
Test updating datetime fields via filter().update() with use_tz=True.
tests/fields/test_time.py:99
Function
test_datetime_values
Test datetime field in values() query.
tests/fields/test_time.py:135
Function
test_datetime_values_list
Test datetime field in values_list() query.
tests/fields/test_time.py:145
Function
test_datetimefield_auto_now_add_only
Test DatetimeField with only auto_now_add=True.
tests/test_datetime_field_bug.py:20
Function
test_datetimefield_auto_now_only
Test DatetimeField with only auto_now=True.
tests/test_datetime_field_bug.py:9
Function
test_datetimefield_both_flags_raises
Test DatetimeField raises when both auto_now and auto_now_add are True.
tests/test_datetime_field_bug.py:31
Function
test_datetimefield_constraints_auto_now
Test that auto_now sets readOnly constraint.
tests/test_datetime_field_bug.py:50
Function
test_datetimefield_constraints_auto_now_add
Test that auto_now_add sets readOnly constraint.
tests/test_datetime_field_bug.py:57
Function
test_datetimefield_constraints_neither
Test that neither flag sets no readOnly constraint.
tests/test_datetime_field_bug.py:64
Function
test_datetimefield_neither_flag
Test DatetimeField with neither flag set.
tests/test_datetime_field_bug.py:39
Function
test_db_config_not_present
(conn_handler)
tests/test_connection.py:38
Function
test_db_config_present
(conn_handler)
tests/test_connection.py:33
Function
test_db_constraint
(db)
tests/test_relations.py:347
Function
test_db_default_and_default_coexist
()
tests/fields/test_db_default.py:93
Function
test_db_default_callable_function_raises
()
tests/fields/test_db_default.py:80
Function
test_db_default_callable_raises
()
tests/fields/test_db_default.py:75
Method
test_db_default_meta_attributes
(self, db)
tests/test_db_default_insert.py:246
Function
test_db_default_not_set
()
tests/fields/test_db_default.py:14
Function
test_db_default_set_bool
()
tests/fields/test_db_default.py:32
Function
test_db_default_set_empty_string
()
tests/fields/test_db_default.py:58
Function
test_db_default_set_false
()
tests/fields/test_db_default.py:64
Function
test_db_default_set_float
()
tests/fields/test_db_default.py:38
Function
test_db_default_set_int
()
tests/fields/test_db_default.py:20
Function
test_db_default_set_none
None is a valid db_default (maps to DEFAULT NULL).
tests/fields/test_db_default.py:44
Function
test_db_default_set_str
()
tests/fields/test_db_default.py:26
Function
test_db_default_set_zero
0 is a valid db_default, not to be confused with sentinel.
tests/fields/test_db_default.py:51
Function
test_db_url_init
()
tests/model_setup/test_init.py:344
Function
test_decimal_field_between_and
(db, decimal_fields_data)
tests/test_filters.py:292
Function
test_decimal_field_gt
(db, decimal_fields_data)
tests/test_filters.py:285
← previous
next →
2,401–2,500 of 3,850, ranked by callers