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
|
@ -51,7 +51,7 @@ func TestRepoAddMoreUnitsHighlighting(t *testing.T) {
|
|||
unit_model.LoadUnitConfig()
|
||||
|
||||
// Create a known-good repo, with some units disabled.
|
||||
repo, _, f := CreateDeclarativeRepo(t, user, "", []unit_model.Type{
|
||||
repo, _, f := tests.CreateDeclarativeRepo(t, user, "", []unit_model.Type{
|
||||
unit_model.TypeCode,
|
||||
unit_model.TypePullRequests,
|
||||
unit_model.TypeProjects,
|
||||
|
@ -142,7 +142,7 @@ func TestRepoAddMoreUnits(t *testing.T) {
|
|||
unit_model.LoadUnitConfig()
|
||||
|
||||
// Create a known-good repo, with all units enabled.
|
||||
repo, _, f := CreateDeclarativeRepo(t, user, "", []unit_model.Type{
|
||||
repo, _, f := tests.CreateDeclarativeRepo(t, user, "", []unit_model.Type{
|
||||
unit_model.TypeCode,
|
||||
unit_model.TypePullRequests,
|
||||
unit_model.TypeProjects,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue