openlark 0.16.0

飞书开放平台 Rust SDK - 企业级高覆盖率 API 客户端,极简依赖一条命令
Documentation
import subprocess
import unittest
from pathlib import Path


class OpenlarkHrMissingDocsTests(unittest.TestCase):
    def test_openlark_hr_has_no_missing_docs_warnings(self):
        result = subprocess.run(
            ["cargo", "test", "-p", "openlark-hr", "--all-features", "--no-run"],
            capture_output=True,
            text=True,
            check=False,
        )

        output = result.stdout + result.stderr
        self.assertEqual(result.returncode, 0, msg=output)
        self.assertNotIn("warning: missing documentation for ", output, msg=output)

    def test_openlark_hr_files_do_not_suppress_missing_docs(self):
        for path in Path("crates/openlark-hr").rglob("*.rs"):
            content = path.read_text(encoding="utf-8")
            self.assertNotIn(
                "#![allow(missing_docs)]",
                content,
                msg=f"{path} should not suppress missing_docs in hr crate",
            )


if __name__ == "__main__":
    unittest.main()