mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-11-01 09:06:25 +08:00
Test: qiniu handler get token
This commit is contained in:
@ -164,3 +164,11 @@ func TestPolicy_GetUploadURL(t *testing.T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestPolicy_IsPathGenerateNeeded(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
policy := Policy{Type: "qiniu"}
|
||||
asserts.True(policy.IsPathGenerateNeeded())
|
||||
policy.Type = "remote"
|
||||
asserts.False(policy.IsPathGenerateNeeded())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user