Refactor AI daily report pipeline
This commit is contained in:
33
tests/test_project_structure.py
Normal file
33
tests/test_project_structure.py
Normal file
@@ -0,0 +1,33 @@
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
class ProjectStructureTests(unittest.TestCase):
|
||||
def test_pipeline_plan_structure_exists(self):
|
||||
expected_paths = [
|
||||
"ai_daily_report/sources/__init__.py",
|
||||
"ai_daily_report/sources/aihot.py",
|
||||
"ai_daily_report/sources/rss.py",
|
||||
"ai_daily_report/sources/juya.py",
|
||||
"ai_daily_report/sources/registry.py",
|
||||
"ai_daily_report/llm.py",
|
||||
"ai_daily_report/validate.py",
|
||||
"ai_daily_report/publish.py",
|
||||
"ai_daily_report/cli.py",
|
||||
"config/sources.json",
|
||||
"config/pipeline.json",
|
||||
"tests/fixtures/.gitkeep",
|
||||
"skill/scripts/.gitkeep",
|
||||
"skill/scripts/run_daily_report.py",
|
||||
]
|
||||
|
||||
missing = [path for path in expected_paths if not (ROOT / path).exists()]
|
||||
|
||||
self.assertEqual(missing, [])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user