Test: new database models and middlewares

This commit is contained in:
HFO4
2021-11-08 20:49:07 +08:00
parent e41ec9defa
commit 3064ed60f3
5 changed files with 153 additions and 23 deletions

View File

@@ -188,18 +188,6 @@ func TestShare_CanBeDownloadBy(t *testing.T) {
asserts.Error(share.CanBeDownloadBy(user))
}
// 未登录,需要积分
{
user := &User{
Group: Group{
OptionsSerialized: GroupOption{
ShareDownload: true,
},
},
}
asserts.Error(share.CanBeDownloadBy(user))
}
// 成功
{
user := &User{