Another round of group stubbing for tests

This commit is contained in:
pnwmatt 2025-02-07 11:56:17 -08:00
commit 88a549f345
No known key found for this signature in database
4 changed files with 62 additions and 34 deletions

View file

@ -189,7 +189,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() {
"statuses_count": 4, "statuses_count": 4,
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
} }
}, },
"target_account": { "target_account": {
@ -247,7 +248,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() {
"verified_at": null "verified_at": null
} }
], ],
"hide_collections": true "hide_collections": true,
"group": false
}, },
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG" "created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
}, },
@ -302,7 +304,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() {
"name": "admin", "name": "admin",
"color": "" "color": ""
} }
] ],
"group": false
}, },
"created_by_application_id": "01F8MGXQRHYF5QPMTMXP78QC2F" "created_by_application_id": "01F8MGXQRHYF5QPMTMXP78QC2F"
}, },
@ -357,7 +360,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() {
"name": "admin", "name": "admin",
"color": "" "color": ""
} }
] ],
"group": false
}, },
"created_by_application_id": "01F8MGXQRHYF5QPMTMXP78QC2F" "created_by_application_id": "01F8MGXQRHYF5QPMTMXP78QC2F"
}, },
@ -429,7 +433,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() {
"verified_at": null "verified_at": null
} }
], ],
"hide_collections": true "hide_collections": true,
"group": false
}, },
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG" "created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
}, },
@ -476,7 +481,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() {
"statuses_count": 4, "statuses_count": 4,
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
} }
}, },
"assigned_account": null, "assigned_account": null,
@ -525,7 +531,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() {
"statuses_count": 4, "statuses_count": 4,
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
}, },
"media_attachments": [ "media_attachments": [
{ {
@ -683,7 +690,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetCreatedByAccount() {
"verified_at": null "verified_at": null
} }
], ],
"hide_collections": true "hide_collections": true,
"group": false
}, },
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG" "created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
}, },
@ -730,7 +738,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetCreatedByAccount() {
"statuses_count": 4, "statuses_count": 4,
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
} }
}, },
"assigned_account": null, "assigned_account": null,
@ -779,7 +788,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetCreatedByAccount() {
"statuses_count": 4, "statuses_count": 4,
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
}, },
"media_attachments": [ "media_attachments": [
{ {
@ -937,7 +947,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetTargetAccount() {
"verified_at": null "verified_at": null
} }
], ],
"hide_collections": true "hide_collections": true,
"group": false
}, },
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG" "created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
}, },
@ -984,7 +995,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetTargetAccount() {
"statuses_count": 4, "statuses_count": 4,
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
} }
}, },
"assigned_account": null, "assigned_account": null,
@ -1033,7 +1045,8 @@ func (suite *ReportsGetTestSuite) TestReportsGetTargetAccount() {
"statuses_count": 4, "statuses_count": 4,
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
}, },
"media_attachments": [ "media_attachments": [
{ {

View file

@ -120,7 +120,8 @@ func (suite *StatusHistoryTestSuite) TestGetHistory() {
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [], "fields": [],
"enable_rss": true "enable_rss": true,
"group": false
}, },
"poll": null, "poll": null,
"media_attachments": [], "media_attachments": [],

View file

@ -139,7 +139,8 @@ func (suite *StatusMuteTestSuite) TestMuteUnmuteStatus() {
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [], "fields": [],
"enable_rss": true "enable_rss": true,
"group": false
}, },
"media_attachments": [], "media_attachments": [],
"mentions": [], "mentions": [],
@ -227,7 +228,8 @@ func (suite *StatusMuteTestSuite) TestMuteUnmuteStatus() {
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [], "fields": [],
"enable_rss": true "enable_rss": true,
"group": false
}, },
"media_attachments": [], "media_attachments": [],
"mentions": [], "mentions": [],

View file

@ -72,7 +72,8 @@ func (suite *InternalToFrontendTestSuite) TestAccountToFrontend() {
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [], "fields": [],
"enable_rss": true "enable_rss": true,
"group": false
}`, string(b)) }`, string(b))
} }
@ -178,8 +179,10 @@ func (suite *InternalToFrontendTestSuite) TestAccountToFrontendAliasedAndMoved()
"verified_at": null "verified_at": null
} }
], ],
"hide_collections": true "hide_collections": true,
} "group": false
},
"group": false
}`, string(b)) }`, string(b))
} }
@ -230,7 +233,8 @@ func (suite *InternalToFrontendTestSuite) TestAccountToFrontendWithEmojiStruct()
} }
], ],
"fields": [], "fields": [],
"enable_rss": true "enable_rss": true,
"group": false
}`, string(b)) }`, string(b))
} }
@ -279,7 +283,8 @@ func (suite *InternalToFrontendTestSuite) TestAccountToFrontendWithEmojiIDs() {
} }
], ],
"fields": [], "fields": [],
"enable_rss": true "enable_rss": true,
"group": false
}`, string(b)) }`, string(b))
} }
@ -333,7 +338,8 @@ func (suite *InternalToFrontendTestSuite) TestAccountToFrontendSensitive() {
"color": "", "color": "",
"permissions": "0", "permissions": "0",
"highlighted": false "highlighted": false
} },
"group": false
}`, string(b)) }`, string(b))
} }
@ -370,7 +376,8 @@ func (suite *InternalToFrontendTestSuite) TestAccountToFrontendPublicPunycode()
"statuses_count": 0, "statuses_count": 0,
"last_status_at": null, "last_status_at": null,
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
}`, string(b)) }`, string(b))
} }
@ -409,7 +416,8 @@ func (suite *InternalToFrontendTestSuite) TestLocalInstanceAccountToFrontendPubl
"statuses_count": 0, "statuses_count": 0,
"last_status_at": null, "last_status_at": null,
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
}`, string(b)) }`, string(b))
} }
@ -448,7 +456,8 @@ func (suite *InternalToFrontendTestSuite) TestLocalInstanceAccountToFrontendBloc
"statuses_count": 0, "statuses_count": 0,
"last_status_at": null, "last_status_at": null,
"emojis": [], "emojis": [],
"fields": [] "fields": [],
"group": false
}`, string(b)) }`, string(b))
} }
@ -516,7 +525,8 @@ func (suite *InternalToFrontendTestSuite) TestStatusToFrontend() {
"name": "admin", "name": "admin",
"color": "" "color": ""
} }
] ],
"group": false
}, },
"media_attachments": [ "media_attachments": [
{ {
@ -2644,11 +2654,11 @@ func (suite *InternalToFrontendTestSuite) TestAdminReportToFrontend1() {
"name": "admin", "name": "admin",
"color": "" "color": ""
} }
] ],
},
"created_by_application_id": "01F8MGXQRHYF5QPMTMXP78QC2F",
"group": false "group": false
}, },
"created_by_application_id": "01F8MGXQRHYF5QPMTMXP78QC2F"
},
"statuses": [], "statuses": [],
"rules": [], "rules": [],
"action_taken_comment": "user was warned not to be a turtle anymore" "action_taken_comment": "user was warned not to be a turtle anymore"
@ -2727,11 +2737,11 @@ func (suite *InternalToFrontendTestSuite) TestAdminReportToFrontend2() {
"verified_at": null "verified_at": null
} }
], ],
"hide_collections": true "hide_collections": true,
},
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG",
"group": false "group": false
}, },
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
},
"target_account": { "target_account": {
"id": "01F8MH5ZK5VRH73AKHQM6Y9VNX", "id": "01F8MH5ZK5VRH73AKHQM6Y9VNX",
"username": "foss_satan", "username": "foss_satan",
@ -3557,7 +3567,8 @@ func (suite *InternalToFrontendTestSuite) TestConversationToAPISelfConvo() {
"last_status_at": "2024-11-01", "last_status_at": "2024-11-01",
"emojis": [], "emojis": [],
"fields": [], "fields": [],
"enable_rss": true "enable_rss": true,
"group": false
} }
], ],
"last_status": { "last_status": {
@ -3725,7 +3736,8 @@ func (suite *InternalToFrontendTestSuite) TestConversationToAPI() {
"verified_at": null "verified_at": null
} }
], ],
"hide_collections": true "hide_collections": true,
"group": false
} }
], ],
"last_status": { "last_status": {