mirror of https://github.com/tad17/pic
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
443 B
Go
23 lines
443 B
Go
package pic
|
|
|
|
import (
|
|
//"log"
|
|
"testing"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetSmallGifs(t *testing.T) {
|
|
url, err := upload("weed_test.go")
|
|
assert.Nil(t, err)
|
|
//log.Printf("url: %s\n", url)
|
|
|
|
|
|
// проверка на обработку ошибок (перепутал url и fid)
|
|
err = delete("4,23456")
|
|
assert.NotNil(t, err)
|
|
|
|
// проверка на корректный url
|
|
err = delete(url)
|
|
assert.Nil(t, err)
|
|
}
|