1
0

fix(views): import

This commit is contained in:
kolaente
2024-03-19 00:24:26 +01:00
parent 8b90eb4a15
commit f3cdd7d15f
4 changed files with 62 additions and 5 deletions

View File

@ -142,12 +142,11 @@ func TestInsertFromStructure(t *testing.T) {
"title": testStructure[1].Title,
"description": testStructure[1].Description,
}, false)
db.AssertExists(t, "tasks", map[string]interface{}{
"title": testStructure[1].Tasks[5].Title,
db.AssertExists(t, "task_buckets", map[string]interface{}{
"task_id": testStructure[1].Tasks[5].ID,
"bucket_id": testStructure[1].Buckets[0].ID,
}, false)
db.AssertMissing(t, "tasks", map[string]interface{}{
"title": testStructure[1].Tasks[6].Title,
db.AssertMissing(t, "task_buckets", map[string]interface{}{
"bucket_id": 1111, // No task with that bucket should exist
})
db.AssertExists(t, "tasks", map[string]interface{}{