style: format Python files with Ruff
Deploy TodoList / deploy (push) Successful in 4s

This commit is contained in:
2026-07-31 10:26:51 +08:00
parent 2fedb6736a
commit 99e42f8be4
5 changed files with 64 additions and 41 deletions
+5 -3
View File
@@ -8,14 +8,16 @@ def test_todoupdate_rejects_empty_update() -> None:
with pytest.raises(ValidationError):
todoupdate()
def test_todoupdate_accepts_provided_value() -> None:
update_data = todoupdate(
task = "学习测试单元",
completion = True,
)
task="学习测试单元",
completion=True,
)
assert update_data.task == "学习测试单元"
def test_todoupdate_accepts_task_only() -> None:
update_data = todoupdate(task="修改后的任务")