summaryrefslogtreecommitdiff
path: root/internal/api/client/admin/accountsgetv2_test.go
diff options
context:
space:
mode:
authorLibravatar pnwmatt <180812017+pnwmatt@users.noreply.github.com>2025-02-08 04:04:30 -0800
committerLibravatar GitHub <noreply@github.com>2025-02-08 13:04:30 +0100
commite10de8464ae577d0a917482d01e7e01fbaf63460 (patch)
tree4fb48ed5fe37e5f7faa417ab79c98ff62178d48f /internal/api/client/admin/accountsgetv2_test.go
parent[chore] Update drone + goreleaser (#3742) (diff)
downloadgotosocial-e10de8464ae577d0a917482d01e7e01fbaf63460.tar.xz
[bug] Add missing `group` property to the Account model (#3746)
* Stub out account's Group parameter * Fix typo in Contributing documentation * Update swagger and match style * Update the swagger command to mimic test/swagger.sh * Fix tests for new `group` param in Account model * More test changes for new `group` param in Account * Continuing test changes for `group` param stubbing * Another round of `group` stubbing for tests
Diffstat (limited to 'internal/api/client/admin/accountsgetv2_test.go')
-rw-r--r--internal/api/client/admin/accountsgetv2_test.go30
1 files changed, 20 insertions, 10 deletions
diff --git a/internal/api/client/admin/accountsgetv2_test.go b/internal/api/client/admin/accountsgetv2_test.go
index 489a245d0..0e3eb95e1 100644
--- a/internal/api/client/admin/accountsgetv2_test.go
+++ b/internal/api/client/admin/accountsgetv2_test.go
@@ -114,7 +114,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"verified_at": null
}
],
- "hide_collections": true
+ "hide_collections": true,
+ "group": false
},
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
},
@@ -169,7 +170,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"name": "admin",
"color": ""
}
- ]
+ ],
+ "group": false
},
"created_by_application_id": "01F8MGXQRHYF5QPMTMXP78QC2F"
},
@@ -216,7 +218,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"statuses_count": 0,
"last_status_at": null,
"emojis": [],
- "fields": []
+ "fields": [],
+ "group": false
}
},
{
@@ -266,7 +269,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"last_status_at": "2024-11-01",
"emojis": [],
"fields": [],
- "enable_rss": true
+ "enable_rss": true,
+ "group": false
},
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
},
@@ -313,7 +317,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"statuses_count": 0,
"last_status_at": null,
"emojis": [],
- "fields": []
+ "fields": [],
+ "group": false
},
"created_by_application_id": "01F8MGY43H3N2C8EWPR2FPYEXG"
},
@@ -360,7 +365,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"statuses_count": 1,
"last_status_at": "2023-11-02",
"emojis": [],
- "fields": []
+ "fields": [],
+ "group": false
}
},
{
@@ -406,7 +412,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"statuses_count": 4,
"last_status_at": "2024-11-01",
"emojis": [],
- "fields": []
+ "fields": [],
+ "group": false
}
},
{
@@ -453,7 +460,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"statuses_count": 0,
"last_status_at": null,
"emojis": [],
- "fields": []
+ "fields": [],
+ "group": false
}
},
{
@@ -499,7 +507,8 @@ func (suite *AccountsGetTestSuite) TestAccountsGetFromTop() {
"statuses_count": 0,
"last_status_at": null,
"emojis": [],
- "fields": []
+ "fields": [],
+ "group": false
}
}
]`, dst.String())
@@ -584,7 +593,8 @@ func (suite *AccountsGetTestSuite) TestAccountsMinID() {
"statuses_count": 0,
"last_status_at": null,
"emojis": [],
- "fields": []
+ "fields": [],
+ "group": false
}
}
]`, dst.String())