mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Set is_empty in fixtures (#18869)
This commit is contained in:
parent
33e19c8004
commit
5b0cdd6155
5 changed files with 43 additions and 6 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue