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_get
(tournament_model)
tests/test_model_methods.py:332
Function
test_get_alias_not_present
(mocked_create_connection, conn_handler)
tests/test_connection.py:219
Function
test_get_alias_present
(conn_handler)
tests/test_connection.py:211
Method
test_get_all
(self, db)
tests/test_source_field.py:28
Method
test_get_by_chars
(self, db)
tests/test_source_field.py:44
Method
test_get_by_pk
(self, db)
tests/test_source_field.py:37
Function
test_get_db_info_not_present
(mocked_db_config, conn_handler)
tests/test_connection.py:107
Function
test_get_db_info_present
(mocked_db_config, conn_handler)
tests/test_connection.py:99
Function
test_get_few_fields
(benchmark, few_fields_benchmark_dataset)
tests/benchmarks/test_get.py:7
Method
test_get_fk_forward_fetch_related
(self, db)
tests/test_source_field.py:51
Method
test_get_fk_forward_prefetch_related
(self, db)
tests/test_source_field.py:61
Method
test_get_fk_reverse_async_for
(self, db)
tests/test_source_field.py:88
Method
test_get_fk_reverse_await
(self, db)
tests/test_source_field.py:70
Method
test_get_fk_reverse_fetch_related
(self, db)
tests/test_source_field.py:100
Method
test_get_fk_reverse_filter
(self, db)
tests/test_source_field.py:79
Method
test_get_fk_reverse_prefetch_related
(self, db)
tests/test_source_field.py:110
Function
test_get_joins_for_backward_m2m_field_includes_schema
Backward M2M field's through table also gets schema.
tests/migrations/test_schema_qualified_migrations.py:770
Function
test_get_joins_for_m2m_field_includes_schema
get_joins_for_related_field() creates through Table with schema.
tests/migrations/test_schema_qualified_migrations.py:755
Method
test_get_m2m_filter
(self, db)
tests/test_source_field.py:143
Function
test_get_m2m_filters_includes_schema_on_table
get_m2m_filters() produces Table objects with schema set.
tests/migrations/test_schema_qualified_migrations.py:741
Method
test_get_m2m_forward_await
(self, db)
tests/test_source_field.py:119
Method
test_get_m2m_forward_fetch_related
(self, db)
tests/test_source_field.py:155
Method
test_get_m2m_forward_prefetch_related
(self, db)
tests/test_source_field.py:175
Method
test_get_m2m_reverse_await
(self, db)
tests/test_source_field.py:131
Method
test_get_m2m_reverse_fetch_related
(self, db)
tests/test_source_field.py:165
Method
test_get_m2m_reverse_prefetch_related
(self, db)
tests/test_source_field.py:184
Function
test_get_many_fields
(benchmark, many_fields_benchmark_dataset)
tests/benchmarks/test_get.py:21
Method
test_get_model_raises_when_not_initialized
get_model raises when not initialized.
tests/test_context.py:205
Function
test_get_or_create
(tournament_model)
tests/test_model_methods.py:226
Function
test_get_or_create_transaction_using_db
Test get_or_create with explicit connection rollback.
tests/test_transactions.py:44
Function
test_get_or_none
(db, intfields_data)
tests/test_queryset.py:371
Function
test_get_or_none
(tournament_model)
tests/test_model_methods.py:360
Function
test_get_raw_sql
(db, intfields_data)
tests/test_queryset.py:623
Function
test_get_reconnects_on_loop_change
When _check_loop() returns False, get() should warn and create a new connection.
tests/test_connection.py:321
Function
test_get_storage
(conn_handler)
tests/test_connection.py:48
Function
test_get_table_default_schema
(model_get_table_db)
tests/test_model_get_table.py:45
Function
test_get_table_returns_fresh_table
(model_get_table_db)
tests/test_model_get_table.py:34
Function
test_get_tortoise_config
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_utils.py:38
Function
test_get_uses_list
(client: TestClient)
examples/blacksheep/_tests.py:24
Function
test_glabal_name_generator
(table_name_db)
tests/test_table_name.py:42
Function
test_good
()
tests/model_setup/test__models__.py:68
Function
test_graph_multi_app_dependencies
()
tests/migrations/test_runtime_migrations.py:168
Function
test_graph_planning_with_keys
()
tests/migrations/test_runtime_migrations.py:155
Function
test_group_aggregation
(db)
tests/test_aggregation.py:132
Function
test_group_by
(sql_context)
tests/test_sql.py:55
Method
test_group_by
(self, db)
tests/test_source_field.py:321
Function
test_group_by_ambigious_column
(db)
tests/test_group_by.py:308
Function
test_group_by_annotate_result
(db, group_by_data)
tests/test_group_by.py:269
Function
test_group_by_id_with_nested_filter
(db, group_by_data)
tests/test_group_by.py:353
Function
test_group_by_nested_column
(db)
tests/test_group_by.py:328
Function
test_group_by_requiring_nested_joins
(db)
tests/test_group_by.py:282
Function
test_hash
(tournament_model, tournament_model_unsaved)
tests/test_model_methods.py:212
Function
test_heads_grouped_output
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:354
Function
test_history_grouped_output
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:312
Function
test_hydrate_100_rows_few_fields
Read 100 rows of a small model — _init_from_db called 100x.
tests/benchmarks/test_hydration.py:14
Function
test_hydrate_100_rows_many_fields
Read 100 rows of a large (30+ field) model — _init_from_db called 100x.
tests/benchmarks/test_hydration.py:26
Function
test_if_generated_then_not_required
()
tests/fields/test_common.py:13
Function
test_if_has_non_null_default_then_not_required
()
tests/fields/test_common.py:23
Function
test_if_null_default_then_required
()
tests/fields/test_common.py:28
Function
test_if_null_then_not_required
()
tests/fields/test_common.py:18
Function
test_immutability_1
Test capabilities are immutable.
tests/backends/test_capabilities.py:23
Function
test_implicit_clone
(tournament_model)
tests/test_model_methods.py:466
Function
test_implicit_clone_pk_required_none
(db)
tests/test_model_methods.py:106
Function
test_implicit_group_by
(db, group_by_data)
tests/test_group_by.py:263
Method
test_implicit_pk
(self, db)
tests/test_primary_key.py:23
Function
test_in
Test in filter on custom enum field.
tests/fields/test_subclass_filters.py:46
Function
test_in_bulk
(db, intfields_data)
tests/test_queryset.py:282
Function
test_in_transaction
Test INSERT inside transaction context manager.
tests/test_manual_sql.py:17
Function
test_in_transaction_commit
Test explicit commit inside transaction persists data even on exception.
tests/test_manual_sql.py:54
Function
test_in_transaction_exception
Test that transaction rolls back on exception.
tests/test_manual_sql.py:28
Function
test_in_transaction_rollback
Test explicit rollback inside transaction.
tests/test_manual_sql.py:43
Function
test_index_access
(tournament_model)
tests/test_model_methods.py:399
Function
test_index_alias_big_int_field
()
tests/fields/test_db_index.py:110
Function
test_index_alias_char_field
()
tests/fields/test_db_index.py:118
Function
test_index_alias_int_field
()
tests/fields/test_db_index.py:102
Function
test_index_alias_small_int_field
()
tests/fields/test_db_index.py:106
Function
test_index_alias_uuid_field
()
tests/fields/test_db_index.py:114
Function
test_index_badtype
(db)
tests/test_model_methods.py:418
Function
test_index_badval
(db)
tests/test_model_methods.py:405
Function
test_index_eq
()
tests/fields/test_db_index.py:25
Function
test_index_fail
Test that JSONField cannot be indexed.
tests/fields/test_json.py:335
Function
test_index_fail
()
tests/fields/test_binary.py:47
Function
test_index_fail
()
tests/fields/test_text.py:50
Function
test_index_hash
()
tests/fields/test_db_index.py:35
Function
test_index_repr
()
tests/fields/test_db_index.py:52
Function
test_infer_migrations_module
()
tests/cli/test_utils.py:74
Function
test_inhereted_int_field
()
tests/fields/type_checks.py:184
Function
test_init
(mocked_init_connections, conn_handler)
tests/test_connection.py:25
Method
test_init_accepts_tortoise_config_object
ctx.init() accepts TortoiseConfig object directly.
tests/test_context.py:523
Function
test_init_config_and_config_file
()
tests/model_setup/test_init.py:431
Function
test_init_config_file_wrong_extension
()
tests/model_setup/test_init.py:453
Function
test_init_connections_db_create
(mocked_get, mocked_db_config, conn_handler)
tests/test_connection.py:137
Function
test_init_connections_false
()
tests/model_setup/test_init.py:275
Function
test_init_connections_false_with_create_db
()
tests/model_setup/test_init.py:298
Function
test_init_connections_no_db_create
(mocked_get, mocked_db_config, conn_handler)
tests/test_connection.py:120
Function
test_init_constructor
(conn_handler)
tests/test_connection.py:17
Function
test_init_creates_migrations_package
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:76
Function
test_init_json_file
()
tests/model_setup/test_init.py:463
Function
test_init_memory_sqlite_decorator
Test init_memory_sqlite as decorator without parentheses.
tests/contrib/test_decorator.py:31
Function
test_init_memory_sqlite_decorator_with_models_list
Test init_memory_sqlite as decorator with models list.
tests/contrib/test_decorator.py:54
← previous
next →
2,801–2,900 of 3,850, ranked by callers