X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3800ebd81df6a1c31d1eac8cc15899537b9cbb61..75f99bded33abe962ca08bf16c77635ac9ca00a1:/tests/test_format.py?ds=inline diff --git a/tests/test_format.py b/tests/test_format.py index 4de3170..51d8fb0 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -80,7 +80,11 @@ PREVIEW_CASES: List[str] = [ "long_strings__edge_case", "long_strings__regression", "percent_precedence", + "remove_except_parens", + "remove_for_brackets", "one_element_subscript", + "remove_await_parens", + "return_annotation_brackets", ] SOURCES: List[str] = [ @@ -190,6 +194,16 @@ def test_pep_570() -> None: assert_format(source, expected, minimum_version=(3, 8)) +def test_remove_with_brackets() -> None: + source, expected = read_data("remove_with_brackets") + assert_format( + source, + expected, + black.Mode(preview=True), + minimum_version=(3, 9), + ) + + @pytest.mark.parametrize("filename", PY310_CASES) def test_python_310(filename: str) -> None: source, expected = read_data(filename)