mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 14:27:29 -06:00
[feature] Add list command to admin account (#1648)
* [feature] Add list command to admin account Relates to: #388 * Print booleans as yes/no too
This commit is contained in:
parent
9e1756ce8b
commit
7d09863393
5 changed files with 81 additions and 0 deletions
|
|
@ -29,6 +29,12 @@ type UserTestSuite struct {
|
|||
BunDBStandardTestSuite
|
||||
}
|
||||
|
||||
func (suite *UserTestSuite) TestGetAllUsers() {
|
||||
users, err := suite.db.GetAllUsers(context.Background())
|
||||
suite.NoError(err)
|
||||
suite.Len(users, len(suite.testUsers))
|
||||
}
|
||||
|
||||
func (suite *UserTestSuite) TestGetUser() {
|
||||
user, err := suite.db.GetUserByID(context.Background(), suite.testUsers["local_account_1"].ID)
|
||||
suite.NoError(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue