Coverage report: 92%

Files Functions Classes

coverage.py v7.13.5, created at 2026-10-09 18:41 +0000

      Statements   Branches   Total
File function   coverage statements missing excluded   coverage branches partial   coverage
fastapi_restly / __init__.py __getattr__   50% 4 2 0   50% 2 1   50%
fastapi_restly / _binding.py _source_parameter   71% 7 2 0   67% 6 2   69%
fastapi_restly / _exception_handlers.py _extract_postgres_detail   83% 18 3 0   75% 12 3   80%
fastapi_restly / _exception_handlers.py _extract_sqlite_detail   91% 11 1 0   88% 8 1   89%
fastapi_restly / _exception_handlers.py _build_integrity_detail   94% 16 1 0   80% 10 2   88%
fastapi_restly / _mapping.py is_mapped_class   67% 6 2 0   100% 2 0   75%
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 _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)   78% 179 39 2   50% 32 6   74%
fastapi_restly / _routes.py iter_routes   80% 5 1 0   75% 4 1   78%
fastapi_restly / _routes.py matched_route   50% 6 3 0   25% 4 1   40%
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 / _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   67% 15 5 0   38% 8 3   57%
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   100% 17 0 0   90% 10 1   96%
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 2   83% 6 1   95%
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 / _runtime.py _statement_tables   88% 8 1 0   75% 4 1   83%
fastapi_restly / clauses / _scopes.py _declared_default_scope   83% 6 1 0   83% 6 1   83%
fastapi_restly / db / _engine_defaults.py apply_connect_hooks   80% 5 1 0   50% 2 1   71%
fastapi_restly / db / _globals.py RestlyContext.__exit__   83% 6 1 0   50% 2 1   75%
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 / query / _impl.py _FromParams.__repr__   0% 1 1 0   100% 0 0   0%
fastapi_restly / query / _impl.py _supports_range_operators   92% 12 1 0   90% 10 1   91%
fastapi_restly / query / _impl.py _pagination_offset_validator._validate_pagination_offset   86% 7 1 0   75% 4 1   82%
fastapi_restly / query / _impl.py _resolve_column   92% 26 2 0   86% 14 2   90%
fastapi_restly / query / _impl.py _build_clause   94% 17 1 0   92% 12 1   93%
fastapi_restly / query / _impl.py _parse_value   95% 19 1 0   88% 8 1   93%
fastapi_restly / query / _impl.py _field_validator   94% 18 1 0   90% 10 1   93%
fastapi_restly / query / _impl.py _get_nested_schema   83% 6 1 0   75% 4 1   80%
fastapi_restly / schemas / _base.py RefExists.__repr__   75% 4 1 0   50% 2 1   67%
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 _unwrap_optional_annotation   86% 7 1 0   75% 4 1   82%
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 _async_resolve_ids_to_sqlalchemy_objects   94% 35 2 0   89% 18 2   92%
fastapi_restly / schemas / _base.py _resolve_ids_to_sqlalchemy_objects   97% 35 1 0   94% 18 1   96%
fastapi_restly / schemas / _base.py _ref_exists_marker   100% 8 0 0   88% 8 1   94%
fastapi_restly / schemas / _base.py _infer_ref_model   90% 10 1 0   83% 6 1   88%
fastapi_restly / schemas / _base.py _ref_exists_fields   94% 18 1 0   90% 10 1   93%
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 (no function)   99% 135 1 4   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 _split_optional   100% 6 0 0   75% 4 1   90%
fastapi_restly / schemas / _generator.py get_model_fields   94% 35 2 0   86% 14 2   92%
fastapi_restly / schemas / _generator.py derive_schema   100% 28 0 0   94% 18 1   98%
fastapi_restly / testing / _client.py _StatusAssertions.assert_status   76% 21 5 0   83% 6 1   78%
fastapi_restly / testing / _client.py (no function)   93% 27 2 6   100% 0 0   93%
fastapi_restly / views / _base.py _get_relationship_property   60% 5 2 0   100% 0 0   60%
fastapi_restly / views / _base.py _column_attr_name   75% 4 1 0   75% 4 1   75%
fastapi_restly / views / _base.py _get_unambiguous_local_fk_name   71% 14 4 0   67% 6 2   70%
fastapi_restly / views / _base.py _many_to_one_names   60% 5 2 0   100% 0 0   60%
fastapi_restly / views / _base.py _relationship_name_for_fk   67% 9 3 0   50% 2 1   64%
fastapi_restly / views / _base.py _is_mapped_column   60% 5 2 0   100% 0 0   60%
fastapi_restly / views / _base.py _is_json_column   67% 6 2 0   100% 0 0   67%
fastapi_restly / views / _base.py _json_ready   91% 11 1 0   88% 8 1   89%
fastapi_restly / views / _base.py _reject_excluded_json_fields   96% 24 1 0   95% 20 1   95%
fastapi_restly / views / _base.py _add_assignment   100% 2 0 0   50% 2 1   75%
fastapi_restly / views / _base.py _reference_identity   50% 8 4 0   50% 6 1   50%
fastapi_restly / views / _base.py _reference_identity_detail   80% 5 1 0   75% 4 1   78%
fastapi_restly / views / _base.py validate_resolved_reference_consistency   94% 17 1 0   92% 12 1   93%
fastapi_restly / views / _base.py _add_null_reference_to_create_plan   93% 15 1 0   80% 10 2   88%
fastapi_restly / views / _base.py _add_resolved_reference_to_create_plan   84% 51 8 0   83% 24 4   84%
fastapi_restly / views / _base.py build_create_plan   96% 27 1 0   90% 20 2   94%
fastapi_restly / views / _base.py _apply_resolved_reference_update   93% 15 1 0   75% 8 2   87%
fastapi_restly / views / _base.py _get_nested_schema_annotation   75% 12 3 0   67% 6 2   72%
fastapi_restly / views / _base.py _build_relationship_loader_options   95% 20 1 0   83% 12 2   91%
fastapi_restly / views / _base.py _schema_relationships_are_loaded   93% 27 2 0   90% 20 2   91%
fastapi_restly / views / _base.py _replaced_pagination_message   94% 16 1 0   88% 8 1   92%
fastapi_restly / views / _base.py _route_parameters   67% 3 1 0   50% 2 1   60%
fastapi_restly / views / _base.py BaseRestView._get_response_reload_statement   83% 6 1 0   75% 4 1   80%
fastapi_restly / views / _base.py BaseRestView._reject_unknown_query_params   75% 8 2 0   50% 4 2   67%
fastapi_restly / views / _base.py BaseRestView.to_single_response   92% 12 1 0   88% 8 1   90%
fastapi_restly / views / _base.py BaseRestView._to_query_params   88% 8 1 0   83% 6 1   86%
fastapi_restly / views / _base.py BaseRestView.before_include_view   98% 55 1 0   85% 40 6   93%
fastapi_restly / views / _base.py _list_params_dependency.list_params   100% 18 0 0   92% 12 1   97%
fastapi_restly / views / _base.py _reads_every_value   67% 3 1 0   50% 2 1   60%
fastapi_restly / views / _base.py _list_openapi_parameters   94% 16 1 0   83% 6 1   91%
fastapi_restly / views / _base.py _inline_definitions   80% 10 2 0   83% 6 1   81%
fastapi_restly / views / _base.py _warn_on_misuse   93% 30 2 0   100% 18 0   96%
fastapi_restly / views / _base.py _warn_scalar_named_reference_fields   84% 25 4 0   100% 8 0   88%
fastapi_restly / views / _base.py _init_class_based_view   95% 38 2 0   95% 20 1   95%
fastapi_restly / views / _base.py (no function)   99% 222 1 10   50% 2 1   99%
fastapi_restly / views / _lifecycle.py _loaded_orm_graph   92% 25 2 0   88% 16 2   90%
fastapi_restly / views / _lifecycle.py _discard_rolled_back_hooks   89% 9 1 0   83% 6 1   87%
fastapi_restly / views / _openapi.py _registry_entries   100% 11 0 0   75% 4 1   93%
fastapi_restly / views / _openapi.py _registry_entries.cleanup   100% 3 0 0   50% 2 1   80%
fastapi_restly / views / _openapi.py _registered_entries   86% 7 1 0   75% 4 1   82%
fastapi_restly / views / _openapi.py _is_id_ref_annotation   86% 14 2 0   100% 6 0   90%
fastapi_restly / views / _openapi.py _field_openapi_key   62% 8 3 0   50% 6 3   57%
fastapi_restly / views / _openapi.py _compute_refs   91% 22 2 0   94% 16 1   92%
fastapi_restly / views / _openapi_names.py _route_view   100% 6 0 0   75% 4 1   90%
fastapi_restly / views / _react_admin.py _resolve_column   94% 16 1 0   86% 14 2   90%
fastapi_restly / views / _react_admin.py _coerce_value   80% 10 2 0   100% 2 0   83%
fastapi_restly / views / _react_admin.py _ReactAdminMixin._reject_unknown_query_params   80% 5 1 0   50% 2 1   71%
fastapi_restly / views / _react_admin.py _ReactAdminMixin._coerce_react_admin_params   96% 24 1 0   93% 14 1   95%
fastapi_restly / views / _react_admin.py _ReactAdminMixin.before_include_view   100% 14 0 0   70% 10 3   88%
Total     93% 4776 336 76   88% 1928 177   92%

No items found using the specified filter.

359 functions skipped due to complete coverage.