部署优化
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user