shorter alarm in future to reduce risk of cross-midnight UTC issue
Some checks failed
Lint / test (push) Waiting to run
Trivy / test (push) Waiting to run
CI / test (push) Has been cancelled

This commit is contained in:
Miguel Jacq 2025-12-06 11:10:42 +11:00
parent f5c52eaf3b
commit aeb3d863e2
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
3 changed files with 4 additions and 4 deletions

View file

@ -2255,7 +2255,7 @@ def test_parse_today_alarms(qtbot, app, tmp_db_cfg, fresh_db):
window._open_date_in_tab(today_qdate)
# Set content with a future alarm
future_time = QTime.currentTime().addSecs(3600) # 1 hour from now
future_time = QTime.currentTime().addSecs(5)
alarm_text = f"Do something ⏰ {future_time.hour():02d}:{future_time.minute():02d}"
# Set the editor's current_date attribute
@ -2379,7 +2379,7 @@ def test_parse_today_alarms_no_text(qtbot, app, tmp_db_cfg, fresh_db):
window._open_date_in_tab(today_qdate)
# Set content with alarm but no text
future_time = QTime.currentTime().addSecs(3600)
future_time = QTime.currentTime().addSecs(5)
alarm_text = f"{future_time.hour():02d}:{future_time.minute():02d}"
window.editor.current_date = today_qdate