1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Set is_empty in fixtures (#18869)

This commit is contained in:
KN4CK3R
2022-02-26 07:15:25 +01:00
committed by GitHub
parent 33e19c8004
commit 5b0cdd6155
5 changed files with 43 additions and 6 deletions

View File

@@ -203,10 +203,10 @@ func TestGetContentsOrListErrors(t *testing.T) {
func TestGetContentsOrListOfEmptyRepos(t *testing.T) {
unittest.PrepareTestEnv(t)
ctx := test.MockContext(t, "user2/repo15")
ctx.SetParams(":id", "15")
test.LoadRepo(t, ctx, 15)
test.LoadUser(t, ctx, 2)
ctx := test.MockContext(t, "user30/empty")
ctx.SetParams(":id", "52")
test.LoadRepo(t, ctx, 52)
test.LoadUser(t, ctx, 30)
test.LoadGitRepo(t, ctx)
defer ctx.Repo.GitRepo.Close()