Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_generate_black_command(self) -> None:
black_exe = Path("/bin/black")
with TemporaryDirectory() as td:
module_dir = Path(td)
self.assertEqual(
ptr._generate_black_cmd(module_dir, black_exe),
(str(black_exe), "--check", "."),
)