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_pyre_cmd(self) -> None:
with TemporaryDirectory() as td:
td_path = Path(td)
pyre_exe = Path("pyre")
conf = {"run_pyre": True}
expected = (str(pyre_exe), "--source-directory", str(td_path), "check")
if ptr.WINDOWS:
expected = ()
self.assertEqual(ptr._generate_pyre_cmd(td_path, pyre_exe, conf), expected)