decomposer: generate deliverable files for Inspect the single_agent template and target repository conventions to identify the required project structure, configuration, interfaces, and implementation patterns for the application landing zone agent.; Define the application landing zone agent's behavior, input and output contracts, document-generation workflow, and architecture-diagram requirements using the extracted template conventions.; Validate the implemented application_landing_zone_agent by running repository tests and checking the TSD document generation, draw.io diagram generation, agent packaging, configuration, and committed implementation against the defined contracts.; Commit and push the validated application_landing_zone_agent implementation to the target repository.
This commit is contained in:
13
tests/test_cli.py
Normal file
13
tests/test_cli.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import json, tempfile, unittest
|
||||
from pathlib import Path
|
||||
from application_landing_zone_agent.cli import main
|
||||
|
||||
class CliTests(unittest.TestCase):
|
||||
def test_cli_writes_three_reviewable_outputs(self):
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
rc = main(["--input", "examples/application.json", "--output-dir", d])
|
||||
self.assertEqual(rc, 0)
|
||||
self.assertEqual({p.name for p in Path(d).iterdir()}, {"tsd.md", "architecture.drawio", "validation.json"})
|
||||
self.assertTrue(json.loads((Path(d) / "validation.json").read_text())["valid"])
|
||||
|
||||
if __name__ == "__main__": unittest.main()
|
||||
Reference in New Issue
Block a user