[PR #86] [CLOSED] [WIP] Write tests for issue API #15139

Closed
opened 2025-11-02 11:39:45 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/86
Author: @andreynering
Created: 11/5/2016
Status: Closed

Base: masterHead: gitea/testing


📝 Commits (2)

  • 700831a Vendor gopkg.in/testfixtures.v2
  • 777ff65 Write tests for Issue API

📊 Changes

25 files changed (+1632 additions, -24 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 cmd/web.go (+13 -12)
📝 models/models.go (+4 -0)
📝 models/repo.go (+5 -1)
📝 modules/context/context.go (+11 -2)
📝 modules/setting/setting.go (+13 -3)
routers/api/v1/repo/issue_test.go (+75 -0)
testdata/app_test.ini (+31 -0)
testdata/fixtures/issue.yml (+19 -0)
testdata/fixtures/repository.yml (+24 -0)
testdata/fixtures/user.yml (+19 -0)
testutil/routers.go (+92 -0)
vendor/gopkg.in/testfixtures.v2/LICENSE (+21 -0)
vendor/gopkg.in/testfixtures.v2/README.md (+323 -0)
vendor/gopkg.in/testfixtures.v2/deprecated.go (+59 -0)
vendor/gopkg.in/testfixtures.v2/helper.go (+38 -0)
vendor/gopkg.in/testfixtures.v2/mysql.go (+45 -0)
vendor/gopkg.in/testfixtures.v2/options.go (+19 -0)
vendor/gopkg.in/testfixtures.v2/oracle.go (+132 -0)
vendor/gopkg.in/testfixtures.v2/postgresql.go (+211 -0)

...and 5 more files

📄 Description

Please don't merge yet. Opened for discussion on testing approach.

For context see #63

Edit: to run these tests:

go test -v -tags sqlite ./routers/api/v1/repo/

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/86 **Author:** [@andreynering](https://github.com/andreynering) **Created:** 11/5/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `gitea/testing` --- ### 📝 Commits (2) - [`700831a`](https://github.com/go-gitea/gitea/commit/700831a2ed221704fa5c7879418cd7be4ca4b91d) Vendor gopkg.in/testfixtures.v2 - [`777ff65`](https://github.com/go-gitea/gitea/commit/777ff65f9edc15aa2fed3e30b3332b1736288733) Write tests for Issue API ### 📊 Changes **25 files changed** (+1632 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `cmd/web.go` (+13 -12) 📝 `models/models.go` (+4 -0) 📝 `models/repo.go` (+5 -1) 📝 `modules/context/context.go` (+11 -2) 📝 `modules/setting/setting.go` (+13 -3) ➕ `routers/api/v1/repo/issue_test.go` (+75 -0) ➕ `testdata/app_test.ini` (+31 -0) ➕ `testdata/fixtures/issue.yml` (+19 -0) ➕ `testdata/fixtures/repository.yml` (+24 -0) ➕ `testdata/fixtures/user.yml` (+19 -0) ➕ `testutil/routers.go` (+92 -0) ➕ `vendor/gopkg.in/testfixtures.v2/LICENSE` (+21 -0) ➕ `vendor/gopkg.in/testfixtures.v2/README.md` (+323 -0) ➕ `vendor/gopkg.in/testfixtures.v2/deprecated.go` (+59 -0) ➕ `vendor/gopkg.in/testfixtures.v2/helper.go` (+38 -0) ➕ `vendor/gopkg.in/testfixtures.v2/mysql.go` (+45 -0) ➕ `vendor/gopkg.in/testfixtures.v2/options.go` (+19 -0) ➕ `vendor/gopkg.in/testfixtures.v2/oracle.go` (+132 -0) ➕ `vendor/gopkg.in/testfixtures.v2/postgresql.go` (+211 -0) _...and 5 more files_ </details> ### 📄 Description Please don't merge yet. Opened for discussion on testing approach. For context see #63 Edit: to run these tests: ``` go test -v -tags sqlite ./routers/api/v1/repo/ ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:39:45 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15139