You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
474 B
24 lines
474 B
7 years ago
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
"git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator/migrations"
|
||
|
"github.com/google/go-github/github"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
// Test_migrate is an integration tests for migrate command
|
||
|
// using repo JonasFranzDEV/test
|
||
|
func Test_migrate(t *testing.T) {
|
||
|
assert.NoError(t, migrate(
|
||
|
context.Background(),
|
||
|
github.NewClient(nil),
|
||
|
migrations.DemoMigratory,
|
||
|
"JonasFranzDEV",
|
||
|
"test",
|
||
|
false,
|
||
|
))
|
||
|
}
|