X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a5fde8ab9be26221d01bdd0a426db07cdb6f0f04..c47b91f513052cd39b818ea7c19716423c85c04e:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index 81e7a9a..c76b3fa 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -1396,6 +1396,12 @@ class BlackTestCase(BlackBaseTestCase): (src_dir.resolve(), "pyproject.toml"), ) + with change_directory(test_dir): + self.assertEqual( + black.find_project_root(("-",), stdin_filename="../src/a.py"), + (src_dir.resolve(), "pyproject.toml"), + ) + @patch( "black.files.find_user_pyproject_toml", )