[PR #3080] [MERGED] Use httptest in integration tests #16753

Closed
opened 2025-11-02 12:18:18 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3080
Author: @ethantkoenig
Created: 12/3/2017
Status: Merged
Merged: 12/3/2017
Merged by: @lafriks

Base: masterHead: update/integration_tests


📝 Commits (2)

  • 24e69bb Use httptest in integration tests
  • c4db69f Merge branch 'master' into update/integration_tests

📊 Changes

12 files changed (+77 additions, -100 deletions)

View changed files

📝 integrations/api_branch_test.go (+2 -2)
📝 integrations/api_gpg_keys_test.go (+36 -33)
📝 integrations/branches_test.go (+4 -4)
📝 integrations/editor_test.go (+6 -5)
📝 integrations/html_helper.go (+2 -2)
📝 integrations/integration_test.go (+13 -44)
📝 integrations/internal_test.go (+4 -4)
📝 integrations/pull_compare_test.go (+1 -1)
📝 integrations/pull_create_test.go (+2 -1)
📝 integrations/pull_merge_test.go (+3 -2)
📝 integrations/repo_fork_test.go (+2 -1)
📝 integrations/repo_migrate_test.go (+2 -1)

📄 Description

Use https://golang.org/pkg/net/http/httptest/ in integration tests instead of reinventing the wheel.


🔄 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/3080 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 12/3/2017 **Status:** ✅ Merged **Merged:** 12/3/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `update/integration_tests` --- ### 📝 Commits (2) - [`24e69bb`](https://github.com/go-gitea/gitea/commit/24e69bbcfaa050a977709f0529b343e069405301) Use httptest in integration tests - [`c4db69f`](https://github.com/go-gitea/gitea/commit/c4db69fb8d7fce6085ffbbc56e48d520857e2bd9) Merge branch 'master' into update/integration_tests ### 📊 Changes **12 files changed** (+77 additions, -100 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_branch_test.go` (+2 -2) 📝 `integrations/api_gpg_keys_test.go` (+36 -33) 📝 `integrations/branches_test.go` (+4 -4) 📝 `integrations/editor_test.go` (+6 -5) 📝 `integrations/html_helper.go` (+2 -2) 📝 `integrations/integration_test.go` (+13 -44) 📝 `integrations/internal_test.go` (+4 -4) 📝 `integrations/pull_compare_test.go` (+1 -1) 📝 `integrations/pull_create_test.go` (+2 -1) 📝 `integrations/pull_merge_test.go` (+3 -2) 📝 `integrations/repo_fork_test.go` (+2 -1) 📝 `integrations/repo_migrate_test.go` (+2 -1) </details> ### 📄 Description Use https://golang.org/pkg/net/http/httptest/ in integration tests instead of reinventing the wheel. --- <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 12:18:18 -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#16753