mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-12 22:52:46 +01:00
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
16 lines
307 B
Go
16 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))
|
|
}
|