Skip to content

test: cover validation_reasons turned off #469

Closed

Description

@uniqueg

Problem

proTES keeps FOCA's validation reason as detail (exceptions.validation_reasons: true in pro_tes/config.yaml, as up to FOCA 0.21). tests/test_app.py::test_validation_details covers that setting, but nothing tests what deployments get when an overlay sets exceptions.validation_reasons: false (FOCA 0.22's default: invalid fields named by location and code, without the rejected values).

Proposal

Add a test with an overlay that sets exceptions.validation_reasons: false: an invalid task still gets 400, the detail no longer quotes the validator's reason, and the response names the invalid field (errors).

Activity

  1. added this to the v0.6.0 milestone on Nov 9, 2026
  2. added
    priority: medium
    status: in progress
    type: testing
    workload: minutes
    on Nov 9, 2026
  3. removed
    status: in progress
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: testingworkload: minutes

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions