Skip to content

Doc string use case - don't remove string after """ #70

@Pedr0Rocha

Description

@Pedr0Rocha

Is your feature request related to a problem? Please describe.
I have a use case on my feature tests where I usually specify the response body in a doc string such as:

 And the response body should be:
  """json
  {
    "errors": [{
      "title": "field X cannot be empty",
      "status": "422"
    }]
  }
  """

But when I run the formatter, it removes the json after the triple double quotes. But I use this to parse different types of responses. It returns:

 And the response body should be:
  """
  {
    "errors": [{
      "title": "field X cannot be empty",
      "status": "422"
    }]
  }
  """

Describe the solution you'd like
I would love to have a flag to disable this behaviour and leave whatever I have after the """.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions