(self, subject: str, description: str = "")
| 276 | (TASKS_DIR / f"task_{task['id']}.json").write_text(json.dumps(task, indent=2)) |
| 277 | |
| 278 | def create(self, subject: str, description: str = "") -> str: |
| 279 | task = {"id": self._next_id(), "subject": subject, "description": description, |
| 280 | "status": "pending", "owner": None, "blockedBy": []} |
| 281 | self._save(task) |
| 282 | return json.dumps(task, indent=2) |
| 283 | |
| 284 | def get(self, tid: int) -> str: |
| 285 | return json.dumps(self._load(tid), indent=2) |
no test coverage detected