Coverage report: 93%

Files Functions Classes

coverage.py v7.17.0, created at 2026-11-09 21:47 +0000

      Statements   Branches   Total
File function   coverage statements missing excluded   coverage branches partial   coverage
fastapi_restly/__init__.py __getattr__   86% 14 2 0   90% 10 1   88%
fastapi_restly/__init__.py (no function)   93% 15 1 2   50% 2 1   88%
fastapi_restly/_binding.py _source_parameter   71% 7 2 0   67% 6 2   69%
fastapi_restly/_integrity.py _extract_postgres_detail   85% 20 3 0   79% 14 3   82%
fastapi_restly/_integrity.py _extract_sqlite_detail   91% 11 1 0   88% 8 1   89%
fastapi_restly/_integrity.py _build_integrity_detail   94% 16 1 0   80% 10 2   88%
fastapi_restly/_integrity.py translate_integrity_errors   89% 9 1 0   75% 4 1   85%
fastapi_restly/_mapping.py is_mapped_class   67% 6 2 0   100% 2 0   75%
fastapi_restly/_mapping.py is_to_many_relationship   62% 8 3 0   50% 2 1   60%
fastapi_restly/_pagination.py Pagination._row_limit_query_param   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _dispose_async_test_engine   100% 5 0 0   75% 4 1   89%
fastapi_restly/_pytest_fixtures.py _install_sqlite_savepoint_fix   80% 10 2 0   50% 4 2   71%
fastapi_restly/_pytest_fixtures.py pytest_report_header   50% 6 3 0   25% 4 1   40%
fastapi_restly/_pytest_fixtures.py _cleanup_mode   75% 4 1 0   50% 2 1   67%
fastapi_restly/_pytest_fixtures.py _application_context_copy   0% 7 7 0   0% 2 0   0%
fastapi_restly/_pytest_fixtures.py _BlockedAsyncSessionFactory.__call__   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _BlockedAsyncSessionFactory.kw   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _BlockedAsyncSessionFactory.begin   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _blocked_async_test_access   0% 6 6 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _shared_connection   88% 17 2 0   83% 6 1   87%
fastapi_restly/_pytest_fixtures.py _restly_sync_scope   38% 26 16 0   40% 10 4   39%
fastapi_restly/_pytest_fixtures.py _restly_async_preclean   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _restly_async_scope   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py restly_async_session   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py restly_async_client   0% 1 1 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _async_rollback_factory   94% 16 1 0   75% 4 1   90%
fastapi_restly/_pytest_fixtures.py _async_rollback_factory.pinned_connection   92% 13 1 0   75% 4 1   88%
fastapi_restly/_pytest_fixtures.py _async_test_scope   44% 16 9 0   33% 6 2   41%
fastapi_restly/_pytest_fixtures.py _restly_async_preclean   0% 7 7 0   0% 2 0   0%
fastapi_restly/_pytest_fixtures.py restly_async_client   53% 19 9 0   17% 6 1   44%
fastapi_restly/_pytest_fixtures.py _AsyncEngineLifespanApp.__init__   0% 2 2 0   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py _AsyncEngineLifespanApp.__call__   0% 6 6 2   100% 0 0   0%
fastapi_restly/_pytest_fixtures.py pytest_collection_finish   36% 11 7 0   50% 4 2   40%
fastapi_restly/_pytest_fixtures.py _restly_managed_isolation   50% 8 4 0   50% 2 1   50%
fastapi_restly/_pytest_fixtures.py _managed_isolation   0% 15 15 0   0% 8 0   0%
fastapi_restly/_pytest_fixtures.py _client_async_engine_policy   38% 8 5 0   17% 6 1   29%
fastapi_restly/_pytest_fixtures.py _async_source_is_loop_bound   0% 5 5 0   0% 2 0   0%
fastapi_restly/_pytest_fixtures.py _reject_split_async_usage   0% 4 4 0   0% 2 0   0%
fastapi_restly/_pytest_fixtures.py restly_client   60% 20 8 0   40% 10 4   53%
fastapi_restly/_pytest_fixtures.py _override_session_generators   53% 15 7 0   42% 12 3   48%
fastapi_restly/_pytest_fixtures.py (no function)   87% 95 12 3   25% 4 1   85%
fastapi_restly/_routes.py matched_route   83% 6 1 0   50% 4 2   70%
fastapi_restly/_scaffold/_cli.py _resolve   100% 10 0 0   75% 8 2   89%
fastapi_restly/_scaffold/_cli.py _next_steps   100% 10 0 0   75% 4 1   93%
fastapi_restly/_scaffold/_cli.py _new   100% 20 0 0   92% 12 1   97%
fastapi_restly/_scaffold/_generate.py _plan   90% 10 1 0   88% 8 1   89%
fastapi_restly/_scaffold/templates/alembic_async/alembic/env.py run_migrations_offline   0% 5 5 0   0% 2 0   0%
fastapi_restly/_scaffold/templates/alembic_async/alembic/env.py do_run_migrations   0% 6 6 0   0% 2 0   0%
fastapi_restly/_scaffold/templates/alembic_async/alembic/env.py run_async_migrations   0% 4 4 0   100% 0 0   0%
fastapi_restly/_scaffold/templates/alembic_async/alembic/env.py run_migrations_online   0% 1 1 0   100% 0 0   0%
fastapi_restly/_scaffold/templates/alembic_async/alembic/env.py (no function)   3% 29 28 0   0% 6 0   3%
fastapi_restly/_scaffold/templates/alembic_sync/alembic/env.py run_migrations_offline   0% 5 5 0   0% 2 0   0%
fastapi_restly/_scaffold/templates/alembic_sync/alembic/env.py run_migrations_online   0% 9 9 0   0% 2 0   0%
fastapi_restly/_scaffold/templates/alembic_sync/alembic/env.py (no function)   4% 24 23 0   0% 6 0   3%
fastapi_restly/_test_setup.py configure_tests   93% 15 1 0   90% 10 1   92%
fastapi_restly/_test_setup.py _prepare_database_sources   70% 10 3 0   50% 4 2   64%
fastapi_restly/_test_setup.py _prepare_database_sources.discover   20% 5 4 0   0% 2 0   14%
fastapi_restly/_test_setup.py _factory_from_session   60% 15 6 0   38% 8 3   52%
fastapi_restly/_test_setup.py _resolve_db_cleanup   80% 5 1 0   75% 4 1   78%
fastapi_restly/_test_setup.py _require_cleanable   90% 10 1 0   88% 8 1   89%
fastapi_restly/_test_setup.py _clean_database_sync   80% 10 2 0   50% 4 2   71%
fastapi_restly/_test_setup.py _clean_database_async   0% 9 9 0   0% 4 0   0%
fastapi_restly/_test_setup.py _reject_split_databases   96% 28 1 0   95% 20 1   96%
fastapi_restly/_test_setup.py _create_schema._create   100% 6 0 0   50% 2 1   88%
fastapi_restly/_test_setup.py _configured_url   100% 9 0 0   88% 8 1   94%
fastapi_restly/_test_setup.py _run_alembic_upgrade   100% 16 0 4   83% 6 1   95%
fastapi_restly/_times.py column_time   89% 18 2 0   86% 14 2   88%
fastapi_restly/clauses/_context.py ContextNamespace.__init_subclass__   82% 17 3 0   79% 14 3   81%
fastapi_restly/clauses/_context.py ContextNamespace.explain   83% 18 3 0   75% 8 2   81%
fastapi_restly/clauses/_context.py _context_member_type   88% 17 2 0   80% 10 2   85%
fastapi_restly/clauses/_context.py _caller_origin   69% 13 4 0   67% 6 2   68%
fastapi_restly/clauses/_context.py (no function)   98% 52 1 0   50% 2 1   96%
fastapi_restly/clauses/_declarations.py _condition_label   60% 5 2 0   100% 0 0   60%
fastapi_restly/clauses/_runtime.py Unscoped.__repr__   0% 1 1 0   100% 0 0   0%
fastapi_restly/clauses/_runtime.py _expression_tables   100% 12 0 0   88% 8 1   95%
fastapi_restly/clauses/_scopes.py _declared_default_scope   83% 6 1 0   83% 6 1   83%
fastapi_restly/db/_config.py RestlyContext.__exit__   83% 6 1 0   50% 2 1   75%
fastapi_restly/db/_engine_defaults.py apply_connect_hooks   67% 6 2 0   25% 4 1   50%
fastapi_restly/db/_session.py _setup_async_database_connection   91% 11 1 0   83% 6 1   88%
fastapi_restly/db/_session.py get_async_engine   83% 6 1 0   75% 4 1   80%
fastapi_restly/db/_session.py _session_dependency   75% 4 1 0   50% 2 1   67%
fastapi_restly/models/__init__.py (no function)   100% 6 0 0   50% 2 1   88%
fastapi_restly/models/_base.py _reject_dataclass_method_from_a_mixin   90% 21 2 0   80% 10 2   87%
fastapi_restly/models/_base.py ModelDefaults.__repr__   91% 11 1 0   75% 4 1   87%
fastapi_restly/models/_pydantic_json.py _adapter_that_keeps_nan   83% 6 1 0   50% 2 1   75%
fastapi_restly/models/_pydantic_json.py PydanticJSON._resolve_for_python_type   80% 5 1 0   75% 4 1   78%
fastapi_restly/models/_pydantic_json.py PydanticJSON.coerce_compared_value   75% 4 1 0   50% 2 1   67%
fastapi_restly/objects.py delete_object   0% 2 2 0   100% 0 0   0%
fastapi_restly/objects.py async_delete_object   0% 2 2 0   100% 0 0   0%
fastapi_restly/query/_impl.py _FromParams.__repr__   0% 1 1 0   100% 0 0   0%
fastapi_restly/query/_impl.py _is_sortable   67% 3 1 0   50% 2 1   60%
fastapi_restly/query/_impl.py _supports_range_operators   86% 21 3 0   94% 16 1   89%
fastapi_restly/query/_impl.py _default_sort_keys   93% 15 1 0   90% 10 1   92%
fastapi_restly/query/_impl.py _check_own_key   94% 16 1 0   90% 10 1   92%
fastapi_restly/query/_impl.py _several_values.validate   93% 15 1 0   88% 8 1   91%
fastapi_restly/query/_impl.py _search_value   86% 7 1 0   75% 4 1   82%
fastapi_restly/query/_impl.py _check_filter_entries   96% 24 1 0   89% 18 2   93%
fastapi_restly/query/_impl.py _check_sort_entries   90% 10 1 0   88% 8 1   89%
fastapi_restly/query/_impl.py _list_params_values   100% 15 0 0   90% 10 1   96%
fastapi_restly/query/_impl.py _resolve_column   93% 29 2 0   88% 16 2   91%
fastapi_restly/query/_impl.py _filter_clause   91% 35 3 0   96% 24 1   93%
fastapi_restly/query/_impl.py _field_of   91% 11 1 0   83% 6 1   88%
fastapi_restly/query/_impl.py _column_value_parser.parse   50% 4 2 0   100% 0 0   50%
fastapi_restly/query/_impl.py _member_of_value   83% 6 1 0   50% 4 2   70%
fastapi_restly/query/_impl.py _column_json_schema   75% 8 2 0   100% 0 0   75%
fastapi_restly/query/_impl.py _python_type_adapter   62% 8 3 0   100% 2 0   70%
fastapi_restly/query/_impl.py _python_type_adapter.construct   0% 4 4 0   100% 0 0   0%
fastapi_restly/query/_impl.py _without_refusals   82% 17 3 0   81% 16 3   82%
fastapi_restly/query/_impl.py _field_core_schema   94% 17 1 0   90% 10 1   93%
fastapi_restly/query/_impl.py _get_nested_schema   83% 6 1 0   75% 4 1   80%
fastapi_restly/query/_paged.py _page_fields_base   100% 5 0 0   83% 6 1   91%
fastapi_restly/schemas/__init__.py (no function)   100% 7 0 0   50% 2 1   89%
fastapi_restly/schemas/_base.py _seen_key   60% 5 2 0   100% 0 0   60%
fastapi_restly/schemas/_base.py _alias_body   75% 16 4 0   70% 10 3   73%
fastapi_restly/schemas/_base.py _own_annotations   67% 3 1 0   50% 2 1   60%
fastapi_restly/schemas/_base.py _is_unresolved   78% 9 2 0   67% 6 2   73%
fastapi_restly/schemas/_base.py _model_id_type   87% 15 2 0   90% 10 1   88%
fastapi_restly/schemas/_base.py IDRef.__init__   80% 5 1 0   75% 4 1   78%
fastapi_restly/schemas/_base.py IDRef.__get_pydantic_json_schema__   75% 4 1 0   50% 2 1   67%
fastapi_restly/schemas/_base.py is_reference_annotation   83% 12 2 0   100% 6 0   89%
fastapi_restly/schemas/_base.py is_reference_field   75% 4 1 0   50% 2 1   67%
fastapi_restly/schemas/_base.py reference_origin_and_target   71% 17 5 0   62% 8 3   68%
fastapi_restly/schemas/_base.py _collect_model_references   95% 22 1 0   93% 14 1   94%
fastapi_restly/schemas/_base.py _id_schema_fields   100% 9 0 0   88% 8 1   94%
fastapi_restly/schemas/_base.py _listed_ref_exists_marker   100% 8 0 0   83% 6 1   93%
fastapi_restly/schemas/_base.py _ref_exists_fields   94% 18 1 0   90% 10 1   93%
fastapi_restly/schemas/_base.py _reject_excluded_json_fields   92% 39 3 0   90% 30 3   91%
fastapi_restly/schemas/_base.py _reject_excluded_json_type   94% 54 3 0   97% 38 1   96%
fastapi_restly/schemas/_base.py _input_keys   89% 9 1 0   83% 6 1   87%
fastapi_restly/schemas/_base.py _as_response   87% 15 2 0   75% 8 2   83%
fastapi_restly/schemas/_base.py _reject_table_class   50% 4 2 0   50% 4 2   50%
fastapi_restly/schemas/_base.py _reject_table_subclass   67% 3 1 0   50% 2 1   60%
fastapi_restly/schemas/_base.py _class_in_type   87% 15 2 0   80% 10 2   84%
fastapi_restly/schemas/_base.py _reject_writable_table_class   83% 6 1 0   83% 6 1   83%
fastapi_restly/schemas/_base.py PatchMixin.__pydantic_init_subclass__   100% 11 0 0   83% 6 1   94%
fastapi_restly/schemas/_base.py (no function)   99% 221 1 6   50% 2 1   99%
fastapi_restly/schemas/_generator.py get_relationship_target_model   94% 16 1 0   79% 14 3   87%
fastapi_restly/schemas/_generator.py _resolve_annotation   89% 9 1 0   75% 4 1   85%
fastapi_restly/schemas/_generator.py _required_init_params   71% 7 2 0   100% 0 0   71%
fastapi_restly/schemas/_generator.py _split_optional   90% 10 1 0   88% 8 1   89%
fastapi_restly/schemas/_generator.py get_model_fields   92% 49 4 0   90% 20 2   91%
fastapi_restly/schemas/_generator.py derive_schema   100% 28 0 0   94% 18 1   98%
fastapi_restly/testing/_client.py _StatusAssertions.assert_status   86% 21 3 0   83% 6 1   85%
fastapi_restly/testing/_client.py (no function)   93% 28 2 7   100% 0 0   93%
fastapi_restly/views/_base.py BaseRestView._reject_unknown_query_params   83% 6 1 0   50% 2 1   75%
fastapi_restly/views/_base.py BaseRestView.to_single_response   92% 12 1 0   88% 8 1   90%
fastapi_restly/views/_base.py BaseRestView.before_include_view   100% 23 0 0   93% 14 1   97%
fastapi_restly/views/_base.py _DeclaredListParams.check_derived   86% 21 3 0   75% 16 2   81%
fastapi_restly/views/_base.py _DeclaredListParams._filter_method_error   100% 5 0 0   50% 2 1   86%
fastapi_restly/views/_base.py _list_item_type   75% 4 1 0   50% 2 1   67%
fastapi_restly/views/_base.py (no function)   100% 167 0 3   50% 2 1   99%
fastapi_restly/views/_class_based_view.py _init_class_based_view   95% 38 2 0   95% 20 1   95%
fastapi_restly/views/_generated.py _function_at   75% 4 1 0   75% 4 1   75%
fastapi_restly/views/_generated.py _decided_at   100% 16 0 0   92% 12 1   96%
fastapi_restly/views/_generated.py _generated_for   83% 12 2 0   100% 4 0   88%
fastapi_restly/views/_guards.py _own_annotations   67% 3 1 0   50% 2 1   60%
fastapi_restly/views/_guards.py _replaced_pagination_message   94% 16 1 0   88% 8 1   92%
fastapi_restly/views/_guards.py _route_parameters   67% 3 1 0   50% 2 1   60%
fastapi_restly/views/_guards.py (no function)   98% 40 1 0   50% 2 1   95%
fastapi_restly/views/_include.py _fields_of   92% 12 1 0   83% 6 1   89%
fastapi_restly/views/_include.py _names_no_fields   89% 9 1 0   75% 4 1   85%
fastapi_restly/views/_include.py _init_api_router   98% 50 1 0   97% 30 1   98%
fastapi_restly/views/_lifecycle.py _loaded_orm_graph   92% 25 2 0   94% 16 1   93%
fastapi_restly/views/_lifecycle.py _require_shared_write_action_commit   75% 4 1 0   50% 2 1   67%
fastapi_restly/views/_list_params.py _own_filters   90% 21 2 0   100% 8 0   93%
fastapi_restly/views/_list_params.py _route_query_keys   90% 10 1 0   83% 6 1   88%
fastapi_restly/views/_list_params.py _validate_list_params   100% 26 0 0   93% 14 1   98%
fastapi_restly/views/_list_params.py _reads_every_value   67% 3 1 0   50% 2 1   60%
fastapi_restly/views/_list_params.py _ListRouteExtra.__getitem__   100% 3 0 0   50% 2 1   80%
fastapi_restly/views/_list_params.py _list_openapi_parameters   94% 18 1 0   88% 8 1   92%
fastapi_restly/views/_misuse_lint.py _source_of   71% 7 2 0   100% 2 0   78%
fastapi_restly/views/_misuse_lint.py _warn_on_misuse   94% 34 2 0   96% 24 1   95%
fastapi_restly/views/_misuse_lint.py _warn_scalar_named_reference_fields   84% 25 4 0   100% 8 0   88%
fastapi_restly/views/_misuse_lint.py _model_set_fields   95% 19 1 0   94% 16 1   94%
fastapi_restly/views/_misuse_lint.py _warn_writable_model_set_fields   89% 27 3 0   95% 20 1   91%
fastapi_restly/views/_react_admin.py ReactAdminListParams._check_range   90% 10 1 0   88% 8 1   89%
fastapi_restly/views/_reads.py _get_nested_schema_annotation   82% 11 2 0   100% 4 0   87%
fastapi_restly/views/_reads.py _identity_columns   100% 13 0 0   83% 6 1   95%
fastapi_restly/views/_schema_to_model.py _get_relationship_property   60% 5 2 0   100% 0 0   60%
fastapi_restly/views/_schema_to_model.py _column_attr_name   75% 4 1 0   75% 4 1   75%
fastapi_restly/views/_schema_to_model.py _get_unambiguous_local_fk_name   71% 14 4 0   67% 6 2   70%
fastapi_restly/views/_schema_to_model.py _many_to_one_names   60% 5 2 0   100% 0 0   60%
fastapi_restly/views/_schema_to_model.py _relationship_name_for_fk   67% 9 3 0   50% 2 1   64%
fastapi_restly/views/_schema_to_model.py _is_mapped_column   60% 5 2 0   100% 0 0   60%
fastapi_restly/views/_schema_to_model.py _is_json_column   67% 6 2 0   100% 0 0   67%
fastapi_restly/views/_schema_to_model.py _add_assignment   100% 2 0 0   50% 2 1   75%
fastapi_restly/views/_schema_to_model.py _reference_identity   50% 8 4 0   50% 6 1   50%
fastapi_restly/views/_schema_to_model.py _reference_identity_detail   80% 5 1 0   75% 4 1   78%
fastapi_restly/views/_schema_to_model.py validate_resolved_reference_consistency   94% 18 1 0   92% 12 1   93%
fastapi_restly/views/_schema_to_model.py _add_null_reference_to_create_plan   93% 15 1 0   80% 10 2   88%
fastapi_restly/views/_schema_to_model.py _add_resolved_reference_to_create_plan   84% 51 8 0   83% 24 4   84%
fastapi_restly/views/_schema_to_model.py build_create_plan   97% 31 1 0   91% 22 2   94%
fastapi_restly/views/_schema_to_model.py _apply_resolved_reference_update   93% 15 1 0   75% 8 2   87%
fastapi_restly/views/_schema_types.py SchemaType.__copy__   0% 1 1 0   100% 0 0   0%
fastapi_restly/views/_schema_types.py _evaluated   71% 7 2 0   100% 2 0   78%
fastapi_restly/views/_schema_types.py _without_none   100% 6 0 0   75% 4 1   90%
fastapi_restly/views/_schema_types.py _replace_markers   97% 34 1 0   95% 20 1   96%
Total     94% 7756 474 84   91% 3076 200   93%

No items found using the specified filter.

709 functions skipped due to complete coverage.