MCPcopy Create free account

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

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

Functiontest_get
(tournament_model)
tests/test_model_methods.py:332
Functiontest_get_alias_not_present
(mocked_create_connection, conn_handler)
tests/test_connection.py:219
Functiontest_get_alias_present
(conn_handler)
tests/test_connection.py:211
Methodtest_get_all
(self, db)
tests/test_source_field.py:28
Methodtest_get_by_chars
(self, db)
tests/test_source_field.py:44
Methodtest_get_by_pk
(self, db)
tests/test_source_field.py:37
Functiontest_get_db_info_not_present
(mocked_db_config, conn_handler)
tests/test_connection.py:107
Functiontest_get_db_info_present
(mocked_db_config, conn_handler)
tests/test_connection.py:99
Functiontest_get_few_fields
(benchmark, few_fields_benchmark_dataset)
tests/benchmarks/test_get.py:7
Methodtest_get_fk_forward_fetch_related
(self, db)
tests/test_source_field.py:51
Methodtest_get_fk_forward_prefetch_related
(self, db)
tests/test_source_field.py:61
Methodtest_get_fk_reverse_async_for
(self, db)
tests/test_source_field.py:88
Methodtest_get_fk_reverse_await
(self, db)
tests/test_source_field.py:70
Methodtest_get_fk_reverse_fetch_related
(self, db)
tests/test_source_field.py:100
Methodtest_get_fk_reverse_filter
(self, db)
tests/test_source_field.py:79
Methodtest_get_fk_reverse_prefetch_related
(self, db)
tests/test_source_field.py:110
Functiontest_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
Functiontest_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
Methodtest_get_m2m_filter
(self, db)
tests/test_source_field.py:143
Functiontest_get_m2m_filters_includes_schema_on_table
get_m2m_filters() produces Table objects with schema set.
tests/migrations/test_schema_qualified_migrations.py:741
Methodtest_get_m2m_forward_await
(self, db)
tests/test_source_field.py:119
Methodtest_get_m2m_forward_fetch_related
(self, db)
tests/test_source_field.py:155
Methodtest_get_m2m_forward_prefetch_related
(self, db)
tests/test_source_field.py:175
Methodtest_get_m2m_reverse_await
(self, db)
tests/test_source_field.py:131
Methodtest_get_m2m_reverse_fetch_related
(self, db)
tests/test_source_field.py:165
Methodtest_get_m2m_reverse_prefetch_related
(self, db)
tests/test_source_field.py:184
Functiontest_get_many_fields
(benchmark, many_fields_benchmark_dataset)
tests/benchmarks/test_get.py:21
Methodtest_get_model_raises_when_not_initialized
get_model raises when not initialized.
tests/test_context.py:205
Functiontest_get_or_create
(tournament_model)
tests/test_model_methods.py:226
Functiontest_get_or_create_transaction_using_db
Test get_or_create with explicit connection rollback.
tests/test_transactions.py:44
Functiontest_get_or_none
(db, intfields_data)
tests/test_queryset.py:371
Functiontest_get_or_none
(tournament_model)
tests/test_model_methods.py:360
Functiontest_get_raw_sql
(db, intfields_data)
tests/test_queryset.py:623
Functiontest_get_reconnects_on_loop_change
When _check_loop() returns False, get() should warn and create a new connection.
tests/test_connection.py:321
Functiontest_get_storage
(conn_handler)
tests/test_connection.py:48
Functiontest_get_table_default_schema
(model_get_table_db)
tests/test_model_get_table.py:45
Functiontest_get_table_returns_fresh_table
(model_get_table_db)
tests/test_model_get_table.py:34
Functiontest_get_tortoise_config
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_utils.py:38
Functiontest_get_uses_list
(client: TestClient)
examples/blacksheep/_tests.py:24
Functiontest_glabal_name_generator
(table_name_db)
tests/test_table_name.py:42
Functiontest_good
()
tests/model_setup/test__models__.py:68
Functiontest_graph_multi_app_dependencies
()
tests/migrations/test_runtime_migrations.py:168
Functiontest_graph_planning_with_keys
()
tests/migrations/test_runtime_migrations.py:155
Functiontest_group_aggregation
(db)
tests/test_aggregation.py:132
Functiontest_group_by
(sql_context)
tests/test_sql.py:55
Methodtest_group_by
(self, db)
tests/test_source_field.py:321
Functiontest_group_by_ambigious_column
(db)
tests/test_group_by.py:308
Functiontest_group_by_annotate_result
(db, group_by_data)
tests/test_group_by.py:269
Functiontest_group_by_id_with_nested_filter
(db, group_by_data)
tests/test_group_by.py:353
Functiontest_group_by_nested_column
(db)
tests/test_group_by.py:328
Functiontest_group_by_requiring_nested_joins
(db)
tests/test_group_by.py:282
Functiontest_hash
(tournament_model, tournament_model_unsaved)
tests/test_model_methods.py:212
Functiontest_heads_grouped_output
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:354
Functiontest_history_grouped_output
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:312
Functiontest_hydrate_100_rows_few_fields
Read 100 rows of a small model — _init_from_db called 100x.
tests/benchmarks/test_hydration.py:14
Functiontest_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
Functiontest_if_generated_then_not_required
()
tests/fields/test_common.py:13
Functiontest_if_has_non_null_default_then_not_required
()
tests/fields/test_common.py:23
Functiontest_if_null_default_then_required
()
tests/fields/test_common.py:28
Functiontest_if_null_then_not_required
()
tests/fields/test_common.py:18
Functiontest_immutability_1
Test capabilities are immutable.
tests/backends/test_capabilities.py:23
Functiontest_implicit_clone
(tournament_model)
tests/test_model_methods.py:466
Functiontest_implicit_clone_pk_required_none
(db)
tests/test_model_methods.py:106
Functiontest_implicit_group_by
(db, group_by_data)
tests/test_group_by.py:263
Methodtest_implicit_pk
(self, db)
tests/test_primary_key.py:23
Functiontest_in
Test in filter on custom enum field.
tests/fields/test_subclass_filters.py:46
Functiontest_in_bulk
(db, intfields_data)
tests/test_queryset.py:282
Functiontest_in_transaction
Test INSERT inside transaction context manager.
tests/test_manual_sql.py:17
Functiontest_in_transaction_commit
Test explicit commit inside transaction persists data even on exception.
tests/test_manual_sql.py:54
Functiontest_in_transaction_exception
Test that transaction rolls back on exception.
tests/test_manual_sql.py:28
Functiontest_in_transaction_rollback
Test explicit rollback inside transaction.
tests/test_manual_sql.py:43
Functiontest_index_access
(tournament_model)
tests/test_model_methods.py:399
Functiontest_index_alias_big_int_field
()
tests/fields/test_db_index.py:110
Functiontest_index_alias_char_field
()
tests/fields/test_db_index.py:118
Functiontest_index_alias_int_field
()
tests/fields/test_db_index.py:102
Functiontest_index_alias_small_int_field
()
tests/fields/test_db_index.py:106
Functiontest_index_alias_uuid_field
()
tests/fields/test_db_index.py:114
Functiontest_index_badtype
(db)
tests/test_model_methods.py:418
Functiontest_index_badval
(db)
tests/test_model_methods.py:405
Functiontest_index_eq
()
tests/fields/test_db_index.py:25
Functiontest_index_fail
Test that JSONField cannot be indexed.
tests/fields/test_json.py:335
Functiontest_index_fail
()
tests/fields/test_binary.py:47
Functiontest_index_fail
()
tests/fields/test_text.py:50
Functiontest_index_hash
()
tests/fields/test_db_index.py:35
Functiontest_index_repr
()
tests/fields/test_db_index.py:52
Functiontest_infer_migrations_module
()
tests/cli/test_utils.py:74
Functiontest_inhereted_int_field
()
tests/fields/type_checks.py:184
Functiontest_init
(mocked_init_connections, conn_handler)
tests/test_connection.py:25
Methodtest_init_accepts_tortoise_config_object
ctx.init() accepts TortoiseConfig object directly.
tests/test_context.py:523
Functiontest_init_config_and_config_file
()
tests/model_setup/test_init.py:431
Functiontest_init_config_file_wrong_extension
()
tests/model_setup/test_init.py:453
Functiontest_init_connections_db_create
(mocked_get, mocked_db_config, conn_handler)
tests/test_connection.py:137
Functiontest_init_connections_false
()
tests/model_setup/test_init.py:275
Functiontest_init_connections_false_with_create_db
()
tests/model_setup/test_init.py:298
Functiontest_init_connections_no_db_create
(mocked_get, mocked_db_config, conn_handler)
tests/test_connection.py:120
Functiontest_init_constructor
(conn_handler)
tests/test_connection.py:17
Functiontest_init_creates_migrations_package
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:76
Functiontest_init_json_file
()
tests/model_setup/test_init.py:463
Functiontest_init_memory_sqlite_decorator
Test init_memory_sqlite as decorator without parentheses.
tests/contrib/test_decorator.py:31
Functiontest_init_memory_sqlite_decorator_with_models_list
Test init_memory_sqlite as decorator with models list.
tests/contrib/test_decorator.py:54
← previousnext →2,801–2,900 of 3,850, ranked by callers