woodpecker/cmd/server/openapi_test.go
Anbraten 07c8765b72
Cleanup openapi generation (#4331)
Co-authored-by: oauth <woodpecker-bot@obermui.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2024-11-23 09:17:19 +01:00

14 lines
269 B
Go

package main
import (
"testing"
"github.com/stretchr/testify/assert"
"go.woodpecker-ci.org/woodpecker/v2/cmd/server/openapi"
)
func TestSetupOpenApiStaticConfig(t *testing.T) {
setupOpenAPIStaticConfig()
assert.Equal(t, "/api", openapi.SwaggerInfo.BasePath)
}