Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move create/fork repository from models to modules/repository #9489

Merged
merged 9 commits into from
Jan 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove duplicated TestMain
  • Loading branch information
lunny committed Jan 12, 2020
commit 106cd49d077659ba3bc53396af53ac81b33158dd
5 changes: 0 additions & 5 deletions modules/repository/fork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
package repository

import (
"path/filepath"
"testing"

"code.gitea.io/gitea/models"
"github.com/stretchr/testify/assert"
)

func TestMain(m *testing.M) {
models.MainTest(m, filepath.Join("..", ".."))
}

func TestForkRepository(t *testing.T) {
assert.NoError(t, models.PrepareTestDatabase())

Expand Down