MCPcopy Create free account

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

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

Functiontest_init_memory_sqlite_decorator_with_models_string
Test init_memory_sqlite as decorator with models string.
tests/contrib/test_decorator.py:77
Functiontest_init_no_apps
()
tests/model_setup/test_init.py:415
Functiontest_init_no_connections
()
tests/model_setup/test_init.py:406
Methodtest_init_raises_with_invalid_config_no_apps
init() raises when config missing apps section.
tests/test_context.py:265
Methodtest_init_raises_with_invalid_config_no_connections
init() raises when config missing connections section.
tests/test_context.py:255
Methodtest_init_raises_with_only_db_url
init() raises with only db_url (no modules).
tests/test_context.py:231
Methodtest_init_raises_with_only_modules
init() raises with only modules (no db_url).
tests/test_context.py:243
Methodtest_init_raises_without_required_params
init() raises without required params.
tests/test_context.py:219
Methodtest_init_sets_database_default
(self, db)
tests/test_db_default_insert.py:67
Functiontest_init_top_level_migrations_package
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:105
Methodtest_init_validates_dict_config
ctx.init() validates dict config and raises ConfigurationError on issues.
tests/test_context.py:540
Methodtest_init_with_config_dict_timezone
Timezone settings from config dict are used.
tests/test_context.py:492
Methodtest_init_with_db_url_and_modules
init() with db_url and modules initializes context correctly.
tests/test_context.py:327
Methodtest_init_with_explicit_value
(self, db)
tests/test_db_default_insert.py:76
Methodtest_init_with_timezone_settings
Context can be initialized with timezone settings.
tests/test_context.py:478
Functiontest_init_wrong_connection_engine
()
tests/model_setup/test_init.py:365
Functiontest_init_wrong_connection_engine_2
()
tests/model_setup/test_init.py:384
Functiontest_init_yaml_file
()
tests/model_setup/test_init.py:472
Functiontest_insert_await_across_transaction_fail
Test insert await across transaction that fails.
tests/test_transactions.py:287
Functiontest_insert_await_across_transaction_success
Test insert await across transaction that succeeds.
tests/test_transactions.py:304
Functiontest_instantiated_await
(db, uuid_models)
tests/fields/test_fk_uuid.py:242
Functiontest_instantiated_create
(db, uuid_models)
tests/fields/test_fk_uuid.py:227
Functiontest_instantiated_iterate
(db, uuid_models)
tests/fields/test_fk_uuid.py:234
Functiontest_int_enum
(db)
tests/contrib/test_pydantic.py:2088
Functiontest_int_enum_auto_description
()
tests/fields/test_enum.py:129
Functiontest_int_enum_char_fails
()
tests/fields/test_enum.py:98
Functiontest_int_enum_create
(db)
tests/fields/test_enum.py:40
Functiontest_int_enum_empty
(db)
tests/fields/test_enum.py:34
Functiontest_int_enum_manual_description
()
tests/fields/test_enum.py:134
Functiontest_int_enum_range1_fails
()
tests/fields/test_enum.py:103
Functiontest_int_enum_range2_fails
()
tests/fields/test_enum.py:110
Functiontest_int_enum_range3_generated_fails
()
tests/fields/test_enum.py:117
Functiontest_int_enum_range3_manual
()
tests/fields/test_enum.py:124
Functiontest_int_enum_update
(db)
tests/fields/test_enum.py:61
Functiontest_int_enum_values
(db)
tests/fields/test_enum.py:77
Functiontest_int_enum_values_list
(db)
tests/fields/test_enum.py:88
Functiontest_int_field_nullability
()
tests/fields/type_checks.py:106
Functiontest_int_fields_cast
(db)
tests/fields/test_int.py:54
Functiontest_int_fields_create
(db)
tests/fields/test_int.py:19
Functiontest_int_fields_empty
(db)
tests/fields/test_int.py:13
Functiontest_int_fields_f_expression
(db)
tests/fields/test_int.py:75
Functiontest_int_fields_min
(db)
tests/fields/test_int.py:43
Functiontest_int_fields_update
(db)
tests/fields/test_int.py:34
Functiontest_int_fields_values
(db)
tests/fields/test_int.py:61
Functiontest_int_fields_values_list
(db)
tests/fields/test_int.py:68
Functiontest_int_sum_math_on_models_with_validators
(db)
tests/test_aggregation.py:299
Functiontest_int_sum_on_models_with_validators
(db)
tests/test_aggregation.py:289
Functiontest_introspection_returns_constraint_names
Backend introspection returns the constraint name from mock results.
tests/migrations/test_schema_editor_constraints.py:124
Functiontest_isnull
Test isnull filter on custom enum field.
tests/fields/test_subclass_filters.py:66
Functiontest_isolation
(db)
examples/pytest/test_example.py:21
Functiontest_join_count
(db)
tests/test_queryset.py:154
Functiontest_joins
(db)
tests/test_queryset_reuse.py:52
Functiontest_joins_in_arithmetic_expressions
(db)
tests/test_queryset.py:858
Functiontest_json_defaults
(json_obj)
tests/contrib/postgres/test_json.py:52
Functiontest_json_field
(db)
tests/contrib/test_pydantic.py:1367
Functiontest_json_float_comparisons
(json_obj)
tests/contrib/postgres/test_json.py:74
Functiontest_json_in
(json_obj)
tests/contrib/postgres/test_json.py:42
Functiontest_json_int_comparisons
(json_obj)
tests/contrib/postgres/test_json.py:60
Functiontest_json_list
(json_obj)
tests/contrib/postgres/test_json.py:118
Functiontest_json_string_comparisons
(json_obj)
tests/contrib/postgres/test_json.py:87
Functiontest_last
(db, intfields_data)
tests/test_queryset.py:308
Functiontest_last
(tournament_model)
tests/test_model_methods.py:294
Functiontest_latest
(db, intfields_data)
tests/test_queryset.py:327
Functiontest_latest
(tournament_model)
tests/test_model_methods.py:301
Functiontest_latest
(latest_earliest_data)
tests/test_latest_earliest.py:27
Functiontest_limit_count
(db, intfields_data)
tests/test_queryset.py:63
Functiontest_limit_negative
(db, intfields_data)
tests/test_queryset.py:68
Functiontest_limit_offset_values
(db, intfields_data)
tests/test_queryset.py:242
Functiontest_limit_offset_values_list
(db, intfields_data)
tests/test_queryset.py:191
Functiontest_limit_zero
(db, intfields_data)
tests/test_queryset.py:75
Functiontest_list
Test JSON field with list data.
tests/fields/test_json.py:111
Functiontest_list_contained_by
Test JSON contained_by filter on list.
tests/fields/test_json.py:136
Functiontest_list_contains
Test JSON contains filter on list.
tests/fields/test_json.py:124
Functiontest_list_str
Test JSON field with list from string.
tests/fields/test_json.py:99
Functiontest_loader_builds_graph
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/migrations/test_runtime_migrations.py:183
Functiontest_loader_missing_module_raises
(tmp_path: Path)
tests/migrations/test_runtime_migrations.py:213
Functiontest_m2m
()
tests/test_model_methods.py:824
Functiontest_m2m_add
(db)
tests/test_relations.py:140
Functiontest_m2m_add_already_added
(db)
tests/test_relations.py:151
Functiontest_m2m_bad_model_name
()
tests/schema/test_generate_schema.py:328
Functiontest_m2m_clear
(db)
tests/test_relations.py:163
Functiontest_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
Functiontest_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
Functiontest_m2m_no_auto_create
()
tests/schema/test_generate_schema.py:519
Functiontest_m2m_remove
(db)
tests/test_relations.py:175
Functiontest_m2m_remove_two
(db)
tests/test_relations.py:197
Functiontest_makemigrations_empty_requires_app_label
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:548
Functiontest_makemigrations_empty_respects_name
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:624
Functiontest_makemigrations_empty_writes_dependencies
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:573
Functiontest_makemigrations_no_changes
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:509
Functiontest_makemigrations_writes_file
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_cli.py:459
Functiontest_manager
Test custom manager functionality with active status filtering.
tests/test_manager.py:7
Functiontest_many2many_field_with_o2o_fk
(db)
tests/test_relations.py:551
Functiontest_many_flat_values_list
(db, intfields_data)
tests/test_queryset.py:572
Functiontest_max_digits_empty
()
tests/fields/test_decimal.py:12
Functiontest_max_fields_bad
()
tests/fields/test_decimal.py:25
Functiontest_max_length_bad
()
tests/fields/test_char.py:13
Functiontest_max_length_missing
()
tests/fields/test_char.py:8
Functiontest_migrate_accepts_dataclass_config
()
tests/migrations/test_migrate_api.py:9
Functiontest_migrate_accepts_dotted_target
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_cli.py:171
← previousnext →2,901–3,000 of 3,850, ranked by callers