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_init_memory_sqlite_decorator_with_models_string
Test init_memory_sqlite as decorator with models string.
tests/contrib/test_decorator.py:77
Function
test_init_no_apps
()
tests/model_setup/test_init.py:415
Function
test_init_no_connections
()
tests/model_setup/test_init.py:406
Method
test_init_raises_with_invalid_config_no_apps
init() raises when config missing apps section.
tests/test_context.py:265
Method
test_init_raises_with_invalid_config_no_connections
init() raises when config missing connections section.
tests/test_context.py:255
Method
test_init_raises_with_only_db_url
init() raises with only db_url (no modules).
tests/test_context.py:231
Method
test_init_raises_with_only_modules
init() raises with only modules (no db_url).
tests/test_context.py:243
Method
test_init_raises_without_required_params
init() raises without required params.
tests/test_context.py:219
Method
test_init_sets_database_default
(self, db)
tests/test_db_default_insert.py:67
Function
test_init_top_level_migrations_package
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:105
Method
test_init_validates_dict_config
ctx.init() validates dict config and raises ConfigurationError on issues.
tests/test_context.py:540
Method
test_init_with_config_dict_timezone
Timezone settings from config dict are used.
tests/test_context.py:492
Method
test_init_with_db_url_and_modules
init() with db_url and modules initializes context correctly.
tests/test_context.py:327
Method
test_init_with_explicit_value
(self, db)
tests/test_db_default_insert.py:76
Method
test_init_with_timezone_settings
Context can be initialized with timezone settings.
tests/test_context.py:478
Function
test_init_wrong_connection_engine
()
tests/model_setup/test_init.py:365
Function
test_init_wrong_connection_engine_2
()
tests/model_setup/test_init.py:384
Function
test_init_yaml_file
()
tests/model_setup/test_init.py:472
Function
test_insert_await_across_transaction_fail
Test insert await across transaction that fails.
tests/test_transactions.py:287
Function
test_insert_await_across_transaction_success
Test insert await across transaction that succeeds.
tests/test_transactions.py:304
Function
test_instantiated_await
(db, uuid_models)
tests/fields/test_fk_uuid.py:242
Function
test_instantiated_create
(db, uuid_models)
tests/fields/test_fk_uuid.py:227
Function
test_instantiated_iterate
(db, uuid_models)
tests/fields/test_fk_uuid.py:234
Function
test_int_enum
(db)
tests/contrib/test_pydantic.py:2088
Function
test_int_enum_auto_description
()
tests/fields/test_enum.py:129
Function
test_int_enum_char_fails
()
tests/fields/test_enum.py:98
Function
test_int_enum_create
(db)
tests/fields/test_enum.py:40
Function
test_int_enum_empty
(db)
tests/fields/test_enum.py:34
Function
test_int_enum_manual_description
()
tests/fields/test_enum.py:134
Function
test_int_enum_range1_fails
()
tests/fields/test_enum.py:103
Function
test_int_enum_range2_fails
()
tests/fields/test_enum.py:110
Function
test_int_enum_range3_generated_fails
()
tests/fields/test_enum.py:117
Function
test_int_enum_range3_manual
()
tests/fields/test_enum.py:124
Function
test_int_enum_update
(db)
tests/fields/test_enum.py:61
Function
test_int_enum_values
(db)
tests/fields/test_enum.py:77
Function
test_int_enum_values_list
(db)
tests/fields/test_enum.py:88
Function
test_int_field_nullability
()
tests/fields/type_checks.py:106
Function
test_int_fields_cast
(db)
tests/fields/test_int.py:54
Function
test_int_fields_create
(db)
tests/fields/test_int.py:19
Function
test_int_fields_empty
(db)
tests/fields/test_int.py:13
Function
test_int_fields_f_expression
(db)
tests/fields/test_int.py:75
Function
test_int_fields_min
(db)
tests/fields/test_int.py:43
Function
test_int_fields_update
(db)
tests/fields/test_int.py:34
Function
test_int_fields_values
(db)
tests/fields/test_int.py:61
Function
test_int_fields_values_list
(db)
tests/fields/test_int.py:68
Function
test_int_sum_math_on_models_with_validators
(db)
tests/test_aggregation.py:299
Function
test_int_sum_on_models_with_validators
(db)
tests/test_aggregation.py:289
Function
test_introspection_returns_constraint_names
Backend introspection returns the constraint name from mock results.
tests/migrations/test_schema_editor_constraints.py:124
Function
test_isnull
Test isnull filter on custom enum field.
tests/fields/test_subclass_filters.py:66
Function
test_isolation
(db)
examples/pytest/test_example.py:21
Function
test_join_count
(db)
tests/test_queryset.py:154
Function
test_joins
(db)
tests/test_queryset_reuse.py:52
Function
test_joins_in_arithmetic_expressions
(db)
tests/test_queryset.py:858
Function
test_json_defaults
(json_obj)
tests/contrib/postgres/test_json.py:52
Function
test_json_field
(db)
tests/contrib/test_pydantic.py:1367
Function
test_json_float_comparisons
(json_obj)
tests/contrib/postgres/test_json.py:74
Function
test_json_in
(json_obj)
tests/contrib/postgres/test_json.py:42
Function
test_json_int_comparisons
(json_obj)
tests/contrib/postgres/test_json.py:60
Function
test_json_list
(json_obj)
tests/contrib/postgres/test_json.py:118
Function
test_json_string_comparisons
(json_obj)
tests/contrib/postgres/test_json.py:87
Function
test_last
(db, intfields_data)
tests/test_queryset.py:308
Function
test_last
(tournament_model)
tests/test_model_methods.py:294
Function
test_latest
(db, intfields_data)
tests/test_queryset.py:327
Function
test_latest
(tournament_model)
tests/test_model_methods.py:301
Function
test_latest
(latest_earliest_data)
tests/test_latest_earliest.py:27
Function
test_limit_count
(db, intfields_data)
tests/test_queryset.py:63
Function
test_limit_negative
(db, intfields_data)
tests/test_queryset.py:68
Function
test_limit_offset_values
(db, intfields_data)
tests/test_queryset.py:242
Function
test_limit_offset_values_list
(db, intfields_data)
tests/test_queryset.py:191
Function
test_limit_zero
(db, intfields_data)
tests/test_queryset.py:75
Function
test_list
Test JSON field with list data.
tests/fields/test_json.py:111
Function
test_list_contained_by
Test JSON contained_by filter on list.
tests/fields/test_json.py:136
Function
test_list_contains
Test JSON contains filter on list.
tests/fields/test_json.py:124
Function
test_list_str
Test JSON field with list from string.
tests/fields/test_json.py:99
Function
test_loader_builds_graph
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_runtime_migrations.py:183
Function
test_loader_missing_module_raises
(tmp_path: Path)
tests/migrations/test_runtime_migrations.py:213
Function
test_m2m
()
tests/test_model_methods.py:824
Function
test_m2m_add
(db)
tests/test_relations.py:140
Function
test_m2m_add_already_added
(db)
tests/test_relations.py:151
Function
test_m2m_bad_model_name
()
tests/schema/test_generate_schema.py:328
Function
test_m2m_clear
(db)
tests/test_relations.py:163
Function
test_m2m_filter_multiple_relations_to_same_table
Two M2M relations from same model to same target should produce correct results.
tests/test_filtering.py:611
Function
test_m2m_filter_two_relations_same_target_produces_aliased_joins
Filtering on two M2M relations to the same target table should produce distinct aliased JOINs.
tests/test_sql.py:273
Function
test_m2m_no_auto_create
()
tests/schema/test_generate_schema.py:519
Function
test_m2m_remove
(db)
tests/test_relations.py:175
Function
test_m2m_remove_two
(db)
tests/test_relations.py:197
Function
test_makemigrations_empty_requires_app_label
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:548
Function
test_makemigrations_empty_respects_name
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:624
Function
test_makemigrations_empty_writes_dependencies
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:573
Function
test_makemigrations_no_changes
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:509
Function
test_makemigrations_writes_file
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:459
Function
test_manager
Test custom manager functionality with active status filtering.
tests/test_manager.py:7
Function
test_many2many_field_with_o2o_fk
(db)
tests/test_relations.py:551
Function
test_many_flat_values_list
(db, intfields_data)
tests/test_queryset.py:572
Function
test_max_digits_empty
()
tests/fields/test_decimal.py:12
Function
test_max_fields_bad
()
tests/fields/test_decimal.py:25
Function
test_max_length_bad
()
tests/fields/test_char.py:13
Function
test_max_length_missing
()
tests/fields/test_char.py:8
Function
test_migrate_accepts_dataclass_config
()
tests/migrations/test_migrate_api.py:9
Function
test_migrate_accepts_dotted_target
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:171
← previous
next →
2,901–3,000 of 3,850, ranked by callers