stackchain-lab-loop/tests/test_daily_cycle.py

21 lines
602 B
Python

import datetime as dt
import unittest
from scripts.open_daily_cycle import cycle_body, cycle_marker
class DailyCycleTests(unittest.TestCase):
def test_marker_is_stable(self):
self.assertEqual(cycle_marker(dt.date(2026, 8, 7)), "[CYCLE 2026-08-07]")
def test_cycle_requires_video_and_both_agents(self):
body = cycle_body(dt.date(2026, 8, 7))
self.assertIn("Timmy pass", body)
self.assertIn("Vincent pass", body)
self.assertIn("MP4 walkthrough", body)
self.assertIn("No progress updates", body)
if __name__ == "__main__":
unittest.main()