taskcheck 1.4.0__tar.gz → 1.4.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.
- {taskcheck-1.4.0/taskcheck.egg-info → taskcheck-1.4.1}/PKG-INFO +1 -1
- {taskcheck-1.4.0 → taskcheck-1.4.1}/pyproject.toml +1 -1
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/report.py +1 -1
- {taskcheck-1.4.0 → taskcheck-1.4.1/taskcheck.egg-info}/PKG-INFO +1 -1
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_report.py +11 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/LICENSE +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/README.md +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/setup.cfg +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/__main__.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/common.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/google_calendar.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/ical.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/install.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/parallel.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck/undo.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck.egg-info/SOURCES.txt +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck.egg-info/dependency_links.txt +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck.egg-info/entry_points.txt +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck.egg-info/requires.txt +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/taskcheck.egg-info/top_level.txt +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_common.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_google_calendar.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_ical.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_install.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_main.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_parallel.py +0 -0
- {taskcheck-1.4.0 → taskcheck-1.4.1}/tests/test_undo.py +0 -0
|
@@ -182,7 +182,7 @@ def get_tasks(config, tasks, year, month, day):
|
|
|
182
182
|
regex = re.compile(rf"{year:04d}-{month:02d}-{day:02d} - ([PDTHM0-9]+)")
|
|
183
183
|
valid_tasks = []
|
|
184
184
|
for task in tasks:
|
|
185
|
-
for line in task
|
|
185
|
+
for line in task.get("scheduling", "").split("\n"):
|
|
186
186
|
m = regex.match(line)
|
|
187
187
|
if m:
|
|
188
188
|
due = task.get("due", "")
|
|
@@ -89,6 +89,17 @@ class TestTaskFiltering:
|
|
|
89
89
|
|
|
90
90
|
assert len(result) == 2
|
|
91
91
|
assert result[0]["urgency"] >= result[1]["urgency"] # Sorted by urgency
|
|
92
|
+
|
|
93
|
+
def test_get_tasks_ignores_tasks_without_scheduling(self, sample_config):
|
|
94
|
+
result = get_tasks(
|
|
95
|
+
sample_config["report"],
|
|
96
|
+
[{"id": 1, "description": "Unplanned task", "urgency": 10.0}],
|
|
97
|
+
2023,
|
|
98
|
+
12,
|
|
99
|
+
5,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
assert result == []
|
|
92
103
|
|
|
93
104
|
@patch('subprocess.run')
|
|
94
105
|
def test_get_unplanned_tasks(self, mock_run, sample_config, test_taskrc):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|