mirror of
https://tvoygit.ru/Djam/artmigrator.git
synced 2025-02-24 02:42:45 +00:00
14 lines
323 B
Go
14 lines
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)
|
||
|
}
|