taskcheck 1.1.1__tar.gz → 1.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {taskcheck-1.1.1/taskcheck.egg-info → taskcheck-1.1.2}/PKG-INFO +1 -1
  2. {taskcheck-1.1.1 → taskcheck-1.1.2}/pyproject.toml +1 -1
  3. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck/common.py +1 -1
  4. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck/parallel.py +1 -1
  5. {taskcheck-1.1.1 → taskcheck-1.1.2/taskcheck.egg-info}/PKG-INFO +1 -1
  6. {taskcheck-1.1.1 → taskcheck-1.1.2}/tests/test_common.py +19 -1
  7. {taskcheck-1.1.1 → taskcheck-1.1.2}/tests/test_parallel.py +2 -0
  8. {taskcheck-1.1.1 → taskcheck-1.1.2}/LICENSE +0 -0
  9. {taskcheck-1.1.1 → taskcheck-1.1.2}/README.md +0 -0
  10. {taskcheck-1.1.1 → taskcheck-1.1.2}/setup.cfg +0 -0
  11. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck/__main__.py +0 -0
  12. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck/ical.py +0 -0
  13. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck/install.py +0 -0
  14. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck/report.py +0 -0
  15. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck.egg-info/SOURCES.txt +0 -0
  16. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck.egg-info/dependency_links.txt +0 -0
  17. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck.egg-info/entry_points.txt +0 -0
  18. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck.egg-info/requires.txt +0 -0
  19. {taskcheck-1.1.1 → taskcheck-1.1.2}/taskcheck.egg-info/top_level.txt +0 -0
  20. {taskcheck-1.1.1 → taskcheck-1.1.2}/tests/test_ical.py +0 -0
  21. {taskcheck-1.1.1 → taskcheck-1.1.2}/tests/test_install.py +0 -0
  22. {taskcheck-1.1.1 → taskcheck-1.1.2}/tests/test_main.py +0 -0
  23. {taskcheck-1.1.1 → taskcheck-1.1.2}/tests/test_report.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskcheck
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: Automatic scheduler for taskwarrior
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "taskcheck"
3
- version = "1.1.1"
3
+ version = "1.1.2"
4
4
  description = "Automatic scheduler for taskwarrior"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -196,7 +196,7 @@ def mark_end_date(
196
196
  str(id),
197
197
  "modify",
198
198
  *start_end_fields,
199
- f'scheduling:"{scheduling_note}"',
199
+ f"scheduling:{scheduling_note}",
200
200
  ],
201
201
  stdout=subprocess.DEVNULL,
202
202
  stderr=subprocess.DEVNULL,
@@ -535,7 +535,7 @@ def update_tasks_with_scheduling_info(task_info, verbose, taskrc):
535
535
  "modify",
536
536
  f"scheduled:{start_date}",
537
537
  f"completion_date:{end_date}",
538
- f'scheduling:"{scheduling_note.strip()}"',
538
+ f"scheduling:{scheduling_note.strip()}",
539
539
  ],
540
540
  stdout=subprocess.DEVNULL,
541
541
  stderr=subprocess.DEVNULL,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskcheck
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: Automatic scheduler for taskwarrior
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -13,7 +13,8 @@ from taskcheck.common import (
13
13
  get_long_range_time_map,
14
14
  get_tasks,
15
15
  get_calendars,
16
- get_task_env
16
+ get_task_env,
17
+ mark_end_date,
17
18
  )
18
19
 
19
20
 
@@ -34,6 +35,23 @@ class TestTimeConversions:
34
35
  assert time_to_decimal(time(14, 15)) == 14.25
35
36
 
36
37
 
38
+ class TestTaskUpdates:
39
+ @patch("taskcheck.common.subprocess.run")
40
+ def test_mark_end_date_passes_unquoted_scheduling_value(self, mock_run):
41
+ mark_end_date(
42
+ None,
43
+ "2026-07-29",
44
+ "2026-07-28",
45
+ "2026-07-28 - PT1H\n2026-07-29 - PT1H",
46
+ 1,
47
+ )
48
+
49
+ command = mock_run.call_args.args[0]
50
+ assert command[-1] == (
51
+ "scheduling:2026-07-28 - PT1H\n2026-07-29 - PT1H"
52
+ )
53
+
54
+
37
55
  class TestDurationConversions:
38
56
  def test_pdth_to_hours(self):
39
57
  assert pdth_to_hours("P1H") == 1.0
@@ -538,4 +538,6 @@ class TestAutoAdjustUrgency:
538
538
  from taskcheck.parallel import update_tasks_with_scheduling_info
539
539
  update_tasks_with_scheduling_info(task_info, verbose=False, taskrc="/tmp/taskrc")
540
540
  mock_run.assert_called_once()
541
+ command = mock_run.call_args.args[0]
542
+ assert command[-1] == "scheduling:2023-12-05 - PT2H"
541
543
  assert mock_print.called
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes