taskcheck 1.1.0__tar.gz → 1.1.1__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.0/taskcheck.egg-info → taskcheck-1.1.1}/PKG-INFO +1 -1
  2. {taskcheck-1.1.0 → taskcheck-1.1.1}/pyproject.toml +1 -1
  3. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck/report.py +1 -1
  4. {taskcheck-1.1.0 → taskcheck-1.1.1/taskcheck.egg-info}/PKG-INFO +1 -1
  5. {taskcheck-1.1.0 → taskcheck-1.1.1}/tests/test_report.py +14 -1
  6. {taskcheck-1.1.0 → taskcheck-1.1.1}/LICENSE +0 -0
  7. {taskcheck-1.1.0 → taskcheck-1.1.1}/README.md +0 -0
  8. {taskcheck-1.1.0 → taskcheck-1.1.1}/setup.cfg +0 -0
  9. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck/__main__.py +0 -0
  10. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck/common.py +0 -0
  11. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck/ical.py +0 -0
  12. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck/install.py +0 -0
  13. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck/parallel.py +0 -0
  14. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck.egg-info/SOURCES.txt +0 -0
  15. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck.egg-info/dependency_links.txt +0 -0
  16. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck.egg-info/entry_points.txt +0 -0
  17. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck.egg-info/requires.txt +0 -0
  18. {taskcheck-1.1.0 → taskcheck-1.1.1}/taskcheck.egg-info/top_level.txt +0 -0
  19. {taskcheck-1.1.0 → taskcheck-1.1.1}/tests/test_common.py +0 -0
  20. {taskcheck-1.1.0 → taskcheck-1.1.1}/tests/test_ical.py +0 -0
  21. {taskcheck-1.1.0 → taskcheck-1.1.1}/tests/test_install.py +0 -0
  22. {taskcheck-1.1.0 → taskcheck-1.1.1}/tests/test_main.py +0 -0
  23. {taskcheck-1.1.0 → taskcheck-1.1.1}/tests/test_parallel.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskcheck
3
- Version: 1.1.0
3
+ Version: 1.1.1
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.0"
3
+ version = "1.1.1"
4
4
  description = "Automatic scheduler for taskwarrior"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -304,7 +304,7 @@ def fetch_tasks(taskrc=None):
304
304
 
305
305
  env = get_task_env(taskrc)
306
306
  tasks = subprocess.run(
307
- ["task", "scheduling~.", "(", "+PENDING", "or", "+WAITING", ")", "export"],
307
+ ["task", "scheduling~.", "+PENDING", "or", "+WAITING", "export"],
308
308
  capture_output=True,
309
309
  text=True,
310
310
  env=env,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskcheck
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Automatic scheduler for taskwarrior
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -10,7 +10,8 @@ from taskcheck.report import (
10
10
  generate_report,
11
11
  get_task_emoji,
12
12
  tostring,
13
- get_unplanned_tasks
13
+ get_unplanned_tasks,
14
+ fetch_tasks,
14
15
  )
15
16
 
16
17
 
@@ -130,6 +131,18 @@ class TestTaskFiltering:
130
131
  mock_date.assert_called_once_with("30d", taskrc=test_taskrc)
131
132
 
132
133
 
134
+ class TestFetchTasks:
135
+ @patch('subprocess.run')
136
+ def test_fetch_tasks_uses_parenthesis_free_filter(self, mock_run, test_taskrc):
137
+ mock_run.return_value = Mock(stdout=json.dumps([]))
138
+
139
+ assert fetch_tasks(test_taskrc) == []
140
+ assert mock_run.call_args.args[0] == [
141
+ "task", "scheduling~.", "+PENDING", "or", "+WAITING", "export"
142
+ ]
143
+ assert mock_run.call_args.kwargs["env"]["TASKRC"] == test_taskrc
144
+
145
+
133
146
  class TestStringFormatting:
134
147
  def test_tostring_boolean(self):
135
148
  assert tostring(True) == "Yes"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes