Test: Share model

This commit is contained in:
HFO4
2020-02-01 13:14:50 +08:00
parent 437bdf46d4
commit b49202e7e1
9 changed files with 399 additions and 38 deletions

View File

@@ -167,7 +167,7 @@ func TestPolicy_GetUploadURL(t *testing.T) {
{
cache.Set("setting_siteURL", "http://127.0.0.1", 0)
policy := Policy{Type: "local", Server: "http://127.0.0.1"}
asserts.Equal("http://127.0.0.1/api/v3/file/upload", policy.GetUploadURL())
asserts.Equal("/api/v3/file/upload", policy.GetUploadURL())
}
// 远程