mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-09 07:28:55 -07:00
chore: static -> test_assets
This commit is contained in:
parent
b8fe630004
commit
9ea68f858d
8 changed files with 10 additions and 9 deletions
|
|
@ -664,9 +664,9 @@ func TestArtistReplaceImage(t *testing.T) {
|
|||
buf := &bytes.Buffer{}
|
||||
mpw := multipart.NewWriter(buf)
|
||||
mpw.WriteField("artist_id", "1")
|
||||
w, err := mpw.CreateFormFile("image", path.Join("..", "static", "yuu.jpg"))
|
||||
w, err := mpw.CreateFormFile("image", path.Join("..", "test_assets", "yuu.jpg"))
|
||||
require.NoError(t, err)
|
||||
f, err := os.Open(path.Join("..", "static", "yuu.jpg"))
|
||||
f, err := os.Open(path.Join("..", "test_assets", "yuu.jpg"))
|
||||
require.NoError(t, err)
|
||||
defer f.Close()
|
||||
_, err = io.Copy(w, f)
|
||||
|
|
@ -702,9 +702,9 @@ func TestAlbumReplaceImage(t *testing.T) {
|
|||
buf := &bytes.Buffer{}
|
||||
mpw := multipart.NewWriter(buf)
|
||||
mpw.WriteField("album_id", "1")
|
||||
w, err := mpw.CreateFormFile("image", path.Join("..", "static", "yuu.jpg"))
|
||||
w, err := mpw.CreateFormFile("image", path.Join("..", "test_assets", "yuu.jpg"))
|
||||
require.NoError(t, err)
|
||||
f, err := os.Open(path.Join("..", "static", "yuu.jpg"))
|
||||
f, err := os.Open(path.Join("..", "test_assets", "yuu.jpg"))
|
||||
require.NoError(t, err)
|
||||
defer f.Close()
|
||||
_, err = io.Copy(w, f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue