Skip to content

Commit 19da10f

Browse files
shcabinshcabin
authored andcommitted
fix unit test
1 parent 4bb5800 commit 19da10f

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

picture_test.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -673,35 +673,3 @@ func TestGetCellImagesAndAltText(t *testing.T) {
673673
}
674674
assert.NoError(t, f.Close())
675675
}
676-
677-
func TestGetImageCells3(t *testing.T) {
678-
f, _ := OpenFile("cell_image2.xlsx")
679-
for _, str := range []string{"E5", "E6", "E7"} {
680-
p, err := f.GetPictures("PriceList", str)
681-
assert.NoError(t, err)
682-
assert.NotNil(t, p)
683-
for _, x := range p {
684-
assert.Equal(t, PictureInsertTypePlaceInCell, x.InsertType)
685-
t.Logf("str:%v, p:%v, InsertType:%v Format:%v", str, x.Extension, x.InsertType, x.Format)
686-
}
687-
}
688-
p, err := f.GetPictures("PriceList", "E8")
689-
assert.NoError(t, err)
690-
assert.NotEqual(t, nil, p)
691-
for _, x := range p {
692-
assert.Equal(t, PictureInsertTypeIMAGE, x.InsertType)
693-
t.Logf("E8 p:%v, InsertType:%v Format:%v", x.Extension, x.InsertType, x.Format)
694-
}
695-
696-
for _, str := range []string{"D11", "D12", "D13", "D14"} {
697-
p, err := f.GetPictures("BillOfMaterials", str)
698-
assert.NoError(t, err)
699-
assert.NotNil(t, p)
700-
for _, x := range p {
701-
assert.Equal(t, PictureInsertTypePlaceInCell, x.InsertType)
702-
t.Logf("str:%v, p:%v, InsertType:%v Format:%v", str, x.Extension, x.InsertType, x.Format)
703-
}
704-
}
705-
706-
assert.NoError(t, f.Close())
707-
}

0 commit comments

Comments
 (0)