MCPcopy Create free account

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

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

Functiontest_named_model_with_relations
(db)
tests/contrib/test_pydantic.py:2079
Functiontest_named_no_relations_model
(db)
tests/contrib/test_pydantic.py:2071
Functiontest_nested
(json_obj)
tests/contrib/postgres/test_json.py:128
Functiontest_nested_aggregation_in_annotation
(db)
tests/test_aggregation.py:65
Functiontest_nested_concurrent_transactions_with_multiple_ops
Test nested concurrent transactions with multiple operations.
tests/test_concurrency.py:97
Methodtest_nested_contexts_work_correctly
Nested contexts work correctly.
tests/test_context.py:77
Functiontest_nested_functions
(db)
tests/test_aggregation.py:163
Functiontest_nested_nested
(json_obj)
tests/contrib/postgres/test_json.py:166
Functiontest_nested_rollback_does_not_enable_autocommit
Test that nested rollback doesn't enable autocommit.
tests/test_transactions.py:115
Functiontest_nested_savepoint_rollback_but_other_succeed
Test nested savepoint rollback while other nested transactions succeed.
tests/test_transactions.py:161
Functiontest_nested_savepoint_rollbacks
Test nested savepoint rollbacks.
tests/test_transactions.py:133
Functiontest_nested_tx_do_not_commit
Test that nested transactions don't commit if outer fails.
tests/test_transactions.py:99
Functiontest_no_ambiguous_fk_relations_set
Basic select_related test cases provided by @https://github.com/Terrance. The idea was that on the moment of writing this feature, there were no
tests/test_relations.py:399
Functiontest_no_app_in_o2o_reference_init
()
tests/model_setup/test_bad_relation_reference.py:155
Functiontest_no_app_in_reference_init
()
tests/model_setup/test_bad_relation_reference.py:101
Functiontest_no_relations_model_both_exclude
(db)
tests/contrib/test_pydantic.py:2015
Functiontest_no_relations_model_exclude_diff
(db)
tests/contrib/test_pydantic.py:2025
Functiontest_no_relations_model_exclude_readonly
(db)
tests/contrib/test_pydantic.py:2033
Functiontest_no_relations_model_one_exclude
(db)
tests/contrib/test_pydantic.py:2005
Functiontest_no_relations_model_reused
(db)
tests/contrib/test_pydantic.py:1997
Functiontest_noid
()
tests/schema/test_generate_schema.py:175
Functiontest_noid_all
(noid_model)
tests/test_model_methods.py:667
Functiontest_noid_clone
(noid_model)
tests/test_model_methods.py:747
Functiontest_noid_clone_from_db
(noid_model)
tests/test_model_methods.py:768
Functiontest_noid_clone_with_pk
(noid_model)
tests/test_model_methods.py:757
Functiontest_noid_create
(db)
tests/test_model_methods.py:565
Functiontest_noid_delete
(noid_model, noid_model_unsaved)
tests/test_model_methods.py:573
Functiontest_noid_earliest
(noid_model)
tests/test_model_methods.py:653
Functiontest_noid_eq
(noid_model)
tests/test_model_methods.py:605
Functiontest_noid_exists
(noid_model)
tests/test_model_methods.py:688
Functiontest_noid_filter
(noid_model)
tests/test_model_methods.py:659
Functiontest_noid_first
(noid_model)
tests/test_model_methods.py:635
Functiontest_noid_force_create
(noid_model)
tests/test_model_methods.py:787
Functiontest_noid_force_update
(noid_model)
tests/test_model_methods.py:794
Functiontest_noid_force_update_raise
(noid_model)
tests/test_model_methods.py:800
Functiontest_noid_get
(noid_model)
tests/test_model_methods.py:674
Functiontest_noid_get_or_create
(noid_model)
tests/test_model_methods.py:611
Functiontest_noid_get_or_none
(noid_model)
tests/test_model_methods.py:701
Functiontest_noid_hash
(noid_model, noid_model_unsaved)
tests/test_model_methods.py:598
Functiontest_noid_implicit_clone
(noid_model)
tests/test_model_methods.py:779
Functiontest_noid_index_access
(noid_model)
tests/test_model_methods.py:715
Functiontest_noid_index_badtype
(db)
tests/test_model_methods.py:734
Functiontest_noid_index_badval
(db)
tests/test_model_methods.py:721
Functiontest_noid_last
(noid_model)
tests/test_model_methods.py:641
Functiontest_noid_latest
(noid_model)
tests/test_model_methods.py:647
Functiontest_noid_repr
(noid_model, noid_model_unsaved)
tests/test_model_methods.py:592
Functiontest_noid_save
(noid_model)
tests/test_model_methods.py:521
Functiontest_noid_save_f_expression
(db)
tests/test_model_methods.py:528
Functiontest_noid_save_full
(noid_model)
tests/test_model_methods.py:537
Functiontest_noid_save_partial
(noid_model)
tests/test_model_methods.py:545
Functiontest_noid_save_partial_with_pk_update
(noid_model)
tests/test_model_methods.py:555
Functiontest_noid_str
(noid_model)
tests/test_model_methods.py:587
Functiontest_noid_update_or_create
(noid_model)
tests/test_model_methods.py:623
Functiontest_non_exist_field_in_fk_reference_init
()
tests/model_setup/test_bad_relation_reference.py:209
Functiontest_non_exist_field_in_o2o_reference_init
()
tests/model_setup/test_bad_relation_reference.py:263
Functiontest_non_unique_field_in_fk_reference_init
()
tests/model_setup/test_bad_relation_reference.py:182
Functiontest_non_unique_field_in_o2o_reference_init
()
tests/model_setup/test_bad_relation_reference.py:236
Functiontest_nonconcurrent_get_or_create_isolated
Test non-concurrent get_or_create.
tests/test_concurrency.py:35
Functiontest_nonconcurrent_get_or_create_transactioned
Test non-concurrent get_or_create within transaction.
tests/test_concurrency.py:136
Functiontest_noneawaitable
(db)
tests/test_model_methods.py:862
Functiontest_nonpk_id
()
tests/model_setup/test_init.py:229
Functiontest_normalize_apps_config_infers_migrations
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_utils.py:83
Functiontest_normalize_apps_config_skips_missing_module
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_utils.py:110
Functiontest_not
Test not filter on custom enum field.
tests/fields/test_subclass_filters.py:31
Functiontest_not_filter
Test not filter on array field.
tests/fields/test_array.py:74
Functiontest_not_in
Test not_in filter on custom enum field.
tests/fields/test_subclass_filters.py:56
Functiontest_not_isnull
Test not_isnull filter on custom enum field.
tests/fields/test_subclass_filters.py:81
Functiontest_now_construction
Now construction.
tests/fields/test_db_default.py:545
Functiontest_now_dialect_mysql
Now emits CURRENT_TIMESTAMP(6) for MySQL.
tests/fields/test_db_default.py:553
Functiontest_now_dialect_other
Now emits plain CURRENT_TIMESTAMP for non-MySQL dialects.
tests/fields/test_db_default.py:561
Functiontest_now_repr
Now repr.
tests/fields/test_db_default.py:592
Functiontest_null_filter
(db)
tests/test_filtering.py:102
Functiontest_null_in_nonnull_field
()
tests/test_model_methods.py:811
Functiontest_nullable_fk_not_required
Nullable FK/O2O relation fields should be optional (default=None) in the schema, not marked as required. This is the fix for issue #1481.
tests/contrib/test_pydantic.py:2201
Functiontest_nullable_fk_obj
(db)
tests/test_relations.py:336
Functiontest_nullable_fk_raw
(db)
tests/test_relations.py:325
Functiontest_o2o_bad_null
()
tests/schema/test_generate_schema.py:316
Functiontest_o2o_bad_on_delete
()
tests/schema/test_generate_schema.py:303
Functiontest_o2o_fk_model_with_m2m_field
(db)
tests/test_relations.py:562
Functiontest_o2o_lazy
(db)
tests/test_relations.py:187
Functiontest_offset_count
(db, intfields_data)
tests/test_queryset.py:81
Functiontest_offset_negative
(db, intfields_data)
tests/test_queryset.py:86
Functiontest_only_advanced_annotate
(db, tournament_with_events)
tests/test_only.py:349
Functiontest_only_advanced_distinct
Test .only() combined with .distinct()
tests/test_only.py:312
Functiontest_only_advanced_empty
Test .only() with no fields (should raise an error)
tests/test_only.py:342
Functiontest_only_advanced_exclude
Test .only() combined with .exclude()
tests/test_only.py:291
Functiontest_only_advanced_join_in_filter
(db, tournament_with_events)
tests/test_only.py:366
Functiontest_only_advanced_join_in_order_by
(db, tournament_with_events)
tests/test_only.py:385
Functiontest_only_advanced_limit
Test .only() combined with .limit()
tests/test_only.py:302
Functiontest_only_advanced_nonexistent_field
Test .only() with a field that doesn't exist
tests/test_only.py:359
Functiontest_only_advanced_pk_field
Test .only() with just the primary key field
tests/test_only.py:333
Functiontest_only_advanced_select_related
Test .only() with .select_related() for basic functionality
tests/test_only.py:402
Functiontest_only_advanced_values
Test .only() combined with .values()
tests/test_only.py:326
Functiontest_only_recursive_one_level
(db)
tests/test_only.py:167
Functiontest_only_recursive_two_levels
(db)
tests/test_only.py:184
Functiontest_only_recursive_two_levels_reverse_argument_order
(db)
tests/test_only.py:201
Functiontest_only_related_just_related
(db)
tests/test_only.py:260
Functiontest_only_related_one_level
(db)
tests/test_only.py:223
Functiontest_only_related_one_level_reversed_argument_order
(db)
tests/test_only.py:246
Functiontest_only_source_filter
(db, source_fields_instance)
tests/test_only.py:108
← previousnext →3,101–3,200 of 3,850, ranked by callers