banner BERITA: sembunyikan baris SETIAP SABTU saat event berikutnya = first-run (17 Agt) — hanya tampil utk putaran mingguan
This commit is contained in:
1 parent
192e27aff3
commit
af9a0291b9
5 files changed
+37
-9
No files matched your search
+12
-2
@@ -109,14 +109,24 @@ def main():
|
||||
in html)
|
||||
|
||||
# ————— V38: banner BERITA jadwal distribusi berikutnya —————
|
||||
dashboard._next_schedule = lambda: datetime(2026, 8, 17, 10, 0)
|
||||
dashboard._next_schedule = lambda now=None: datetime(2026, 8, 17, 10, 0)
|
||||
resp = client.get('/')
|
||||
html = resp.get_data(as_text=True)
|
||||
check('V38 tag BERITA', 'BERITA' in html)
|
||||
check('V38 judul DISTRIBUSI BERIKUTNYA', 'DISTRIBUSI BERIKUTNYA' in html)
|
||||
check('V38 tanggal id-ID (Senin 17 Agt)',
|
||||
'SENIN · 17 AGUSTUS 2026 · 10:00' in html)
|
||||
check('V38 baris berulang', 'SETIAP SABTU · 10:00' in html)
|
||||
check('V38 baris berulang TAK tampil saat first-run (17 Agt ≠ Sabtu)',
|
||||
'SETIAP SABTU · 10:00' not in html)
|
||||
check('V38 _is_first_run_next sebelum launch = True',
|
||||
dashboard._is_first_run_next(datetime(2026, 8, 6)) is True)
|
||||
check('V38 _is_first_run_next setelah launch = False',
|
||||
dashboard._is_first_run_next(datetime(2026, 8, 18)) is False)
|
||||
|
||||
dashboard._next_schedule = lambda now=None: datetime(2026, 8, 22, 10, 0)
|
||||
html = client.get('/').get_data(as_text=True)
|
||||
check('V38 baris berulang tampil utk putaran mingguan',
|
||||
'SETIAP SABTU · 10:00' in html)
|
||||
|
||||
# drift-guard: logika boundary mirror distribute_loop (V31 ⊥ impor)
|
||||
import distribute_loop
|
||||
|
||||
Reference in new issue
Block a user