Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Pedr0Rocha opened this issue Oct 2, 2024 · 0 comments
Open

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

Pedr0Rocha opened this issue Oct 2, 2024 · 0 comments

Comments

@Pedr0Rocha
Copy link

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 """.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant