mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-09-19 21:33:56 +02:00
51938cd161
If the Forgejo factory for the Forgejo service is not registered, newDownloader will fallback to a git service and not migrate issues etc. Refs: https://codeberg.org/forgejo/forgejo/issues/1678
17 lines
307 B
Go
17 lines
307 B
Go
// Copyright 2023 The Forgejo Authors
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package migrations
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"code.gitea.io/gitea/modules/structs"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestForgejoDownload(t *testing.T) {
|
|
require.NotNil(t, getFactoryFromServiceType(structs.ForgejoService))
|
|
}
|