(self, subject: str, description: str = "")
| 65 | path.write_text(json.dumps(task, indent=2, ensure_ascii=False)) |
| 66 | |
| 67 | def create(self, subject: str, description: str = "") -> str: |
| 68 | task = { |
| 69 | "id": self._next_id, "subject": subject, "description": description, |
| 70 | "status": "pending", "blockedBy": [], "owner": "", |
| 71 | } |
| 72 | self._save(task) |
| 73 | self._next_id += 1 |
| 74 | return json.dumps(task, indent=2, ensure_ascii=False) |
| 75 | |
| 76 | def get(self, task_id: int) -> str: |
| 77 | return json.dumps(self._load(task_id), indent=2, ensure_ascii=False) |
no test coverage detected