34 lines
996 B
Python
34 lines
996 B
Python
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()
|