Make function private and give it a more descriptive name
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
91982d9d8a
commit
de31ffa899
|
@ -32,7 +32,7 @@ import (
|
|||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func GetBoard(t *testing.T) ([]*trello.Board, time.Time) {
|
||||
func getTestBoard(t *testing.T) ([]*trello.Board, time.Time) {
|
||||
|
||||
config.InitConfig()
|
||||
|
||||
|
@ -217,7 +217,7 @@ func GetBoard(t *testing.T) ([]*trello.Board, time.Time) {
|
|||
}
|
||||
|
||||
func TestConvertTrelloToVikunja(t *testing.T) {
|
||||
trelloData, time1 := GetBoard(t)
|
||||
trelloData, time1 := getTestBoard(t)
|
||||
|
||||
exampleFile, err := os.ReadFile(config.ServiceRootpath.GetString() + "/pkg/modules/migration/testimage.jpg")
|
||||
require.NoError(t, err)
|
||||
|
@ -422,7 +422,7 @@ func TestConvertTrelloToVikunja(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestCreateOrganizationMap(t *testing.T) {
|
||||
trelloData, _ := GetBoard(t)
|
||||
trelloData, _ := getTestBoard(t)
|
||||
|
||||
organizationMap := createOrganizationMap(trelloData)
|
||||
expectedMap := map[string][]*trello.Board{
|
||||
|
|
Loading…
Reference in New Issue
Block a user