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_named_model_with_relations
(db)
tests/contrib/test_pydantic.py:2079
Function
test_named_no_relations_model
(db)
tests/contrib/test_pydantic.py:2071
Function
test_nested
(json_obj)
tests/contrib/postgres/test_json.py:128
Function
test_nested_aggregation_in_annotation
(db)
tests/test_aggregation.py:65
Function
test_nested_concurrent_transactions_with_multiple_ops
Test nested concurrent transactions with multiple operations.
tests/test_concurrency.py:97
Method
test_nested_contexts_work_correctly
Nested contexts work correctly.
tests/test_context.py:77
Function
test_nested_functions
(db)
tests/test_aggregation.py:163
Function
test_nested_nested
(json_obj)
tests/contrib/postgres/test_json.py:166
Function
test_nested_rollback_does_not_enable_autocommit
Test that nested rollback doesn't enable autocommit.
tests/test_transactions.py:115
Function
test_nested_savepoint_rollback_but_other_succeed
Test nested savepoint rollback while other nested transactions succeed.
tests/test_transactions.py:161
Function
test_nested_savepoint_rollbacks
Test nested savepoint rollbacks.
tests/test_transactions.py:133
Function
test_nested_tx_do_not_commit
Test that nested transactions don't commit if outer fails.
tests/test_transactions.py:99
Function
test_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
Function
test_no_app_in_o2o_reference_init
()
tests/model_setup/test_bad_relation_reference.py:155
Function
test_no_app_in_reference_init
()
tests/model_setup/test_bad_relation_reference.py:101
Function
test_no_relations_model_both_exclude
(db)
tests/contrib/test_pydantic.py:2015
Function
test_no_relations_model_exclude_diff
(db)
tests/contrib/test_pydantic.py:2025
Function
test_no_relations_model_exclude_readonly
(db)
tests/contrib/test_pydantic.py:2033
Function
test_no_relations_model_one_exclude
(db)
tests/contrib/test_pydantic.py:2005
Function
test_no_relations_model_reused
(db)
tests/contrib/test_pydantic.py:1997
Function
test_noid
()
tests/schema/test_generate_schema.py:175
Function
test_noid_all
(noid_model)
tests/test_model_methods.py:667
Function
test_noid_clone
(noid_model)
tests/test_model_methods.py:747
Function
test_noid_clone_from_db
(noid_model)
tests/test_model_methods.py:768
Function
test_noid_clone_with_pk
(noid_model)
tests/test_model_methods.py:757
Function
test_noid_create
(db)
tests/test_model_methods.py:565
Function
test_noid_delete
(noid_model, noid_model_unsaved)
tests/test_model_methods.py:573
Function
test_noid_earliest
(noid_model)
tests/test_model_methods.py:653
Function
test_noid_eq
(noid_model)
tests/test_model_methods.py:605
Function
test_noid_exists
(noid_model)
tests/test_model_methods.py:688
Function
test_noid_filter
(noid_model)
tests/test_model_methods.py:659
Function
test_noid_first
(noid_model)
tests/test_model_methods.py:635
Function
test_noid_force_create
(noid_model)
tests/test_model_methods.py:787
Function
test_noid_force_update
(noid_model)
tests/test_model_methods.py:794
Function
test_noid_force_update_raise
(noid_model)
tests/test_model_methods.py:800
Function
test_noid_get
(noid_model)
tests/test_model_methods.py:674
Function
test_noid_get_or_create
(noid_model)
tests/test_model_methods.py:611
Function
test_noid_get_or_none
(noid_model)
tests/test_model_methods.py:701
Function
test_noid_hash
(noid_model, noid_model_unsaved)
tests/test_model_methods.py:598
Function
test_noid_implicit_clone
(noid_model)
tests/test_model_methods.py:779
Function
test_noid_index_access
(noid_model)
tests/test_model_methods.py:715
Function
test_noid_index_badtype
(db)
tests/test_model_methods.py:734
Function
test_noid_index_badval
(db)
tests/test_model_methods.py:721
Function
test_noid_last
(noid_model)
tests/test_model_methods.py:641
Function
test_noid_latest
(noid_model)
tests/test_model_methods.py:647
Function
test_noid_repr
(noid_model, noid_model_unsaved)
tests/test_model_methods.py:592
Function
test_noid_save
(noid_model)
tests/test_model_methods.py:521
Function
test_noid_save_f_expression
(db)
tests/test_model_methods.py:528
Function
test_noid_save_full
(noid_model)
tests/test_model_methods.py:537
Function
test_noid_save_partial
(noid_model)
tests/test_model_methods.py:545
Function
test_noid_save_partial_with_pk_update
(noid_model)
tests/test_model_methods.py:555
Function
test_noid_str
(noid_model)
tests/test_model_methods.py:587
Function
test_noid_update_or_create
(noid_model)
tests/test_model_methods.py:623
Function
test_non_exist_field_in_fk_reference_init
()
tests/model_setup/test_bad_relation_reference.py:209
Function
test_non_exist_field_in_o2o_reference_init
()
tests/model_setup/test_bad_relation_reference.py:263
Function
test_non_unique_field_in_fk_reference_init
()
tests/model_setup/test_bad_relation_reference.py:182
Function
test_non_unique_field_in_o2o_reference_init
()
tests/model_setup/test_bad_relation_reference.py:236
Function
test_nonconcurrent_get_or_create_isolated
Test non-concurrent get_or_create.
tests/test_concurrency.py:35
Function
test_nonconcurrent_get_or_create_transactioned
Test non-concurrent get_or_create within transaction.
tests/test_concurrency.py:136
Function
test_noneawaitable
(db)
tests/test_model_methods.py:862
Function
test_nonpk_id
()
tests/model_setup/test_init.py:229
Function
test_normalize_apps_config_infers_migrations
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_utils.py:83
Function
test_normalize_apps_config_skips_missing_module
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_utils.py:110
Function
test_not
Test not filter on custom enum field.
tests/fields/test_subclass_filters.py:31
Function
test_not_filter
Test not filter on array field.
tests/fields/test_array.py:74
Function
test_not_in
Test not_in filter on custom enum field.
tests/fields/test_subclass_filters.py:56
Function
test_not_isnull
Test not_isnull filter on custom enum field.
tests/fields/test_subclass_filters.py:81
Function
test_now_construction
Now construction.
tests/fields/test_db_default.py:545
Function
test_now_dialect_mysql
Now emits CURRENT_TIMESTAMP(6) for MySQL.
tests/fields/test_db_default.py:553
Function
test_now_dialect_other
Now emits plain CURRENT_TIMESTAMP for non-MySQL dialects.
tests/fields/test_db_default.py:561
Function
test_now_repr
Now repr.
tests/fields/test_db_default.py:592
Function
test_null_filter
(db)
tests/test_filtering.py:102
Function
test_null_in_nonnull_field
()
tests/test_model_methods.py:811
Function
test_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
Function
test_nullable_fk_obj
(db)
tests/test_relations.py:336
Function
test_nullable_fk_raw
(db)
tests/test_relations.py:325
Function
test_o2o_bad_null
()
tests/schema/test_generate_schema.py:316
Function
test_o2o_bad_on_delete
()
tests/schema/test_generate_schema.py:303
Function
test_o2o_fk_model_with_m2m_field
(db)
tests/test_relations.py:562
Function
test_o2o_lazy
(db)
tests/test_relations.py:187
Function
test_offset_count
(db, intfields_data)
tests/test_queryset.py:81
Function
test_offset_negative
(db, intfields_data)
tests/test_queryset.py:86
Function
test_only_advanced_annotate
(db, tournament_with_events)
tests/test_only.py:349
Function
test_only_advanced_distinct
Test .only() combined with .distinct()
tests/test_only.py:312
Function
test_only_advanced_empty
Test .only() with no fields (should raise an error)
tests/test_only.py:342
Function
test_only_advanced_exclude
Test .only() combined with .exclude()
tests/test_only.py:291
Function
test_only_advanced_join_in_filter
(db, tournament_with_events)
tests/test_only.py:366
Function
test_only_advanced_join_in_order_by
(db, tournament_with_events)
tests/test_only.py:385
Function
test_only_advanced_limit
Test .only() combined with .limit()
tests/test_only.py:302
Function
test_only_advanced_nonexistent_field
Test .only() with a field that doesn't exist
tests/test_only.py:359
Function
test_only_advanced_pk_field
Test .only() with just the primary key field
tests/test_only.py:333
Function
test_only_advanced_select_related
Test .only() with .select_related() for basic functionality
tests/test_only.py:402
Function
test_only_advanced_values
Test .only() combined with .values()
tests/test_only.py:326
Function
test_only_recursive_one_level
(db)
tests/test_only.py:167
Function
test_only_recursive_two_levels
(db)
tests/test_only.py:184
Function
test_only_recursive_two_levels_reverse_argument_order
(db)
tests/test_only.py:201
Function
test_only_related_just_related
(db)
tests/test_only.py:260
Function
test_only_related_one_level
(db)
tests/test_only.py:223
Function
test_only_related_one_level_reversed_argument_order
(db)
tests/test_only.py:246
Function
test_only_source_filter
(db, source_fields_instance)
tests/test_only.py:108
← previous
next →
3,101–3,200 of 3,850, ranked by callers