部署优化

This commit is contained in:
andy
2026-08-03 20:59:59 +08:00
parent 5294edab89
commit 727643f1f2
18 changed files with 358 additions and 130 deletions

View File

@@ -33,8 +33,12 @@ class DeploymentEntrypointTests(unittest.TestCase):
root_requirements = (PROJECT_ROOT / "requirements.txt").read_text(
encoding="utf-8"
)
company_requirements = (
PROJECT_ROOT / "requirements-company-reports.txt"
).read_text(encoding="utf-8")
self.assertIn("--enable-processing", compose)
self.assertIn("--enable-company-reports", compose)
self.assertNotIn("\n mcp:", compose)
self.assertNotIn("DEERFLOW", compose)
self.assertNotIn("ARR_MCP", compose)
@@ -47,6 +51,13 @@ class DeploymentEntrypointTests(unittest.TestCase):
self.assertNotIn("basic_auth", caddy)
self.assertNotIn("requirements-agent-integration", root_requirements)
self.assertNotIn("requirements-arr-mcp", root_requirements)
self.assertIn("openpyxl", company_requirements)
company_package = json.loads(
(PROJECT_ROOT / "company_reports" / "xlsx" / "package.json").read_text(
encoding="utf-8"
)
)
self.assertNotIn("@oai/artifact-tool", json.dumps(company_package))
if __name__ == "__main__":