artmigrator/repository/gitea/gitea_test.go

14 lines
323 B
Go
Raw Normal View History

2024-11-19 17:42:08 +03:00
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)
}