Feat: import file from existing outer folder

This commit is contained in:
HFO4
2020-05-02 10:22:28 +08:00
parent b02d27ca0a
commit e8a6df9a86
9 changed files with 169 additions and 2 deletions

View File

@ -246,9 +246,11 @@ func TestPolicy_Props(t *testing.T) {
asserts.True(policy.IsPathGenerateNeeded())
asserts.True(policy.IsTransitUpload(4))
asserts.False(policy.IsTransitUpload(5 * 1024 * 1024))
asserts.True(policy.CanStructureBeListed())
policy.Type = "local"
asserts.True(policy.IsThumbGenerateNeeded())
asserts.True(policy.IsPathGenerateNeeded())
asserts.False(policy.CanStructureBeListed())
}
func TestPolicy_IsThumbExist(t *testing.T) {