chore: bootstrap rdb-discovery

This commit is contained in:
2026-06-01 17:43:02 +01:00
commit dede6ecc60
45 changed files with 2101 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
from pathlib import Path
from rdb_discovery.tasks import get_next_task, update_task_status
def test_get_next_task(tmp_path: Path) -> None:
(tmp_path / "TASKS.md").write_text(
"# TASKS.md\n\n"
"## TASK-001 - First\nStatus: Done\n\n"
"## TASK-002 - Second\nStatus: Todo\n\n",
encoding="utf-8",
)
task = get_next_task(tmp_path)
assert task is not None
assert task.task_id == "TASK-002"
assert task.title == "Second"
def test_update_task_status(tmp_path: Path) -> None:
tasks = tmp_path / "TASKS.md"
tasks.write_text(
"# TASKS.md\n\n## TASK-001 - First\nStatus: Todo\n\n",
encoding="utf-8",
)
assert update_task_status(tmp_path, "TASK-001", "In Progress") is True
assert "Status: In Progress" in tasks.read_text(encoding="utf-8")