X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/53c23e62df9b182edf9e7ccf726acdcf8c25846f..b4dca26c7d93f930bbd5a7b552807370b60d4298:/tests/test_format.py diff --git a/tests/test_format.py b/tests/test_format.py index 5a7b3bb..8e0ada9 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -134,6 +134,13 @@ def test_python_311(filename: str) -> None: assert_format(source, expected, mode, minimum_version=(3, 11)) +@pytest.mark.parametrize("filename", all_data_cases("py_312")) +def test_python_312(filename: str) -> None: + source, expected = read_data("py_312", filename) + mode = black.Mode(target_versions={black.TargetVersion.PY312}) + assert_format(source, expected, mode, minimum_version=(3, 12)) + + @pytest.mark.parametrize("filename", all_data_cases("fast")) def test_fast_cases(filename: str) -> None: source, expected = read_data("fast", filename)