artmigrator/repository/gitea/gitea_test.go

14 lines
No EOL
323 B
Go

package gitea
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestArtifactExists(t *testing.T) {
client := NewClient("https://gitea.example.com", "token")
exists, err := client.ArtifactExists("owner", "repo", "test-artifact")
assert.NoError(t, err)
assert.Equal(t, false, exists)
}