Add a test for stmt assign breaking in preview mode (#7516)

In preview mode, black will consistently break the right side first.
This doesn't work yet, but we'll need the test later.
This commit is contained in:
konsti 2023-09-19 16:16:40 +02:00 committed by GitHub
parent 6dade5b9ab
commit 4ae463d04b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 208 additions and 2 deletions

View file

@ -255,12 +255,14 @@ impl fmt::Display for DisplayPyOptions<'_> {
line-width = {line_width}
indent-width = {indent_width}
quote-style = {quote_style:?}
magic-trailing-comma = {magic_trailing_comma:?}"#,
magic-trailing-comma = {magic_trailing_comma:?}
preview = {preview:?}"#,
indent_style = self.0.indent_style(),
indent_width = self.0.indent_width().value(),
line_width = self.0.line_width().value(),
quote_style = self.0.quote_style(),
magic_trailing_comma = self.0.magic_trailing_comma()
magic_trailing_comma = self.0.magic_trailing_comma(),
preview = self.0.preview()
)
}
}