Add bulk allowance edit endpoint #56

Merged
seeseemelk merged 3 commits from 15/put-bulk-allowance into main 2025-05-18 09:24:37 +02:00
Showing only changes of commit 7ec2008e34 - Show all commits

View File

@ -594,6 +594,11 @@ func TestCompleteTask(t *testing.T) {
}
}
func TestCompleteTaskInvalidId(t *testing.T) {
e := startServer(t)
e.POST("/task/999/complete").Expect().Status(404)
}
func TestCompleteTaskAllowanceWeightsSumTo0(t *testing.T) {
e := startServer(t)
taskId := createTestTaskWithAmount(e, 101)
@ -626,11 +631,6 @@ func TestCompleteTaskAllowanceWeightsSumTo0(t *testing.T) {
allowances.Value(1).Object().Value("progress").Number().IsEqual(0)
}
func TestCompleteTaskInvalidId(t *testing.T) {
e := startServer(t)
e.POST("/task/999/complete").Expect().Status(404)
}
func TestCompleteAllowance(t *testing.T) {
e := startServer(t)
createTestTaskWithAmount(e, 100)