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_validate_base_dir_fail(self, mock_exit: Mock) -> None:
ptr._validate_base_dir(gettempdir() + "6969")
mock_exit.assert_called_once()
def test_validate_base_dir(self) -> None:
path_str = gettempdir()
expected_path = Path(path_str)
self.assertEqual(ptr._validate_base_dir(path_str), expected_path)