Add comprehensive test suite: GitHub, S3, Generation, Output, E2E

- tests/test_github_ingest.py - GitHub repository ingestion
- tests/test_s3_ingest.py - S3/Backblaze ingestion
- tests/test_generation.py - Document generation
- tests/test_output_push.py - Output file and push handling
- tests/test_e2e.py - End-to-end integration tests

Closes #58
This commit is contained in:
Solaria
2026-03-14 10:54:37 +00:00
parent e73969cc63
commit b417626778
6 changed files with 981 additions and 1 deletions
+4 -1
View File
@@ -134,6 +134,7 @@ class OpusOrchestrator:
self._classify_purpose_from_intent(
concept=intended_outcome, # Using outcome as proxy for concept
target_audience=target_audience,
intended_outcome=intended_outcome,
)
# Select appropriate framework based on purpose
@@ -190,18 +191,20 @@ class OpusOrchestrator:
self,
concept: str,
target_audience: str,
intended_outcome: str,
) -> None:
"""Classify purpose from book intent using keyword classifier.
Args:
concept: The book concept/title
target_audience: Target audience description
intended_outcome: What the book intends to achieve
"""
classifier = PurposeClassifier()
result = classifier._keyword_classify(
concept=concept or "",
target_audience=target_audience,
intended_outcome=self.intent.intended_outcome or "",
intended_outcome=intended_outcome or "",
)
self.purpose = result.purpose