aboutsummaryrefslogtreecommitdiffstats
path: root/models/models_test.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-08 22:03:34 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-08 22:03:34 -0400
commit830494a8aac36f37166c59d6f34863949fb22a40 (patch)
treeaca4f744c3edd69fbcccf6f1472d0651d6606962 /models/models_test.go
parent25713ab209a22b03ebadae277d3b765a340e8e82 (diff)
downloadgitea-830494a8aac36f37166c59d6f34863949fb22a40.tar.gz
gitea-830494a8aac36f37166c59d6f34863949fb22a40.zip
Remove old files
Diffstat (limited to 'models/models_test.go')
-rw-r--r--models/models_test.go55
1 files changed, 0 insertions, 55 deletions
diff --git a/models/models_test.go b/models/models_test.go
deleted file mode 100644
index b808f41d21..0000000000
--- a/models/models_test.go
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
-
-package models
-
-import (
- "fmt"
- "testing"
-
- "github.com/lunny/xorm"
- _ "github.com/mattn/go-sqlite3"
- . "github.com/smartystreets/goconvey/convey"
-
- "github.com/gogits/gogs/modules/base"
-)
-
-func init() {
- var err error
- orm, err = xorm.NewEngine("sqlite3", "./test.db")
- if err != nil {
- fmt.Println(err)
- }
-
- orm.ShowSQL = true
- orm.ShowDebug = true
-
- err = orm.Sync(&User{}, &Repository{})
- if err != nil {
- fmt.Println(err)
- }
-
- base.RepoRootPath = "test"
-}
-
-func TestCreateRepository(t *testing.T) {
- user := User{Id: 1, Name: "foobar", Type: UT_INDIVIDUAL}
- _, err := CreateRepository(&user, "test", "", "", "test repo desc", false, false)
- if err != nil {
- t.Error(err)
- }
-}
-
-func TestDeleteRepository(t *testing.T) {
- err := DeleteRepository(1, 1, "foobar")
- if err != nil {
- t.Error(err)
- }
-}
-
-func TestCommitRepoAction(t *testing.T) {
- Convey("Create a commit repository action", t, func() {
-
- })
-}