1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
package app
import (
"testing"
"github.com/isacikgoz/gitbatch/internal/git"
"github.com/stretchr/testify/require"
)
func TestQuick(t *testing.T) {
// Test requires internet access
t.Skip()
th := git.InitTestRepositoryFromLocal(t)
defer th.CleanUp(t)
var tests = []struct {
inp1 []string
inp2 string
}{
{
[]string{th.DirtyRepoPath()},
"fetch",
}, {
[]string{th.DirtyRepoPath()},
"pull",
},
}
for _, test := range tests {
err := quick(test.inp1, test.inp2)
require.NoError(t, err)
}
}
|