forked from kevadesu/forgejo
[TESTS] Move CreateDeclarativeRepo
to more accessible location
- This allows `CreateDeclarativeRepo` to be used by other testing packages such as E2EE testing. - Removes unused function in `services/webhook/sourcehut/builds_test.go`.
This commit is contained in:
parent
78e4736db6
commit
f78e397dd6
32 changed files with 196 additions and 258 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
"code.gitea.io/gitea/models/unittest"
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
"code.gitea.io/gitea/modules/translation"
|
||||
"code.gitea.io/gitea/tests"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
@ -28,7 +29,7 @@ func TestArchiveText(t *testing.T) {
|
|||
link := path.Join(testUser, testRepoName, "settings")
|
||||
|
||||
// Create test repo
|
||||
_, _, f := CreateDeclarativeRepo(t, user2, testRepoName, nil, nil, nil)
|
||||
_, _, f := tests.CreateDeclarativeRepo(t, user2, testRepoName, nil, nil, nil)
|
||||
defer f()
|
||||
|
||||
// Test settings page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue