From aeb3d863e2fbbf81d8c2a72e0b8bc2b60349ce72 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Sat, 6 Dec 2025 11:10:42 +1100 Subject: [PATCH] shorter alarm in future to reduce risk of cross-midnight UTC issue --- pyproject.toml | 2 +- release.sh | 2 +- tests/test_main_window.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c4bb99f..8f8cfd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bouquin" -version = "0.6.3" +version = "0.6.4" description = "Bouquin is a simple, opinionated notebook application written in Python, PyQt and SQLCipher." authors = ["Miguel Jacq "] readme = "README.md" diff --git a/release.sh b/release.sh index 6b51c25..5970bb3 100755 --- a/release.sh +++ b/release.sh @@ -3,7 +3,7 @@ set -eo pipefail # Clean caches etc -/home/user/venv-filedust/bin/filedust -y . +/home/user/venv-guardutils/bin/filedust -y . # Publish to Pypi poetry build diff --git a/tests/test_main_window.py b/tests/test_main_window.py index 6869cf9..f3e22dc 100644 --- a/tests/test_main_window.py +++ b/tests/test_main_window.py @@ -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