[PR #1979] [MERGED] Consolidate boilerplate in integration tests #16156

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1979
Author: @ethantkoenig
Created: 6/15/2017
Status: Merged
Merged: 6/17/2017
Merged by: @lunny

Base: masterHead: refactor/integration_test


📝 Commits (1)

  • a84e002 Consolidate boilerplate in integration tests

📊 Changes

16 files changed (+149 additions, -168 deletions)

View changed files

📝 integrations/api_team_test.go (+1 -1)
📝 integrations/change_default_branch_test.go (+15 -21)
📝 integrations/delete_user_test.go (+5 -9)
📝 integrations/editor_test.go (+35 -47)
📝 integrations/html_helper.go (+9 -6)
📝 integrations/integration_test.go (+33 -16)
📝 integrations/issue_test.go (+2 -3)
📝 integrations/pull_compare_test.go (+2 -3)
📝 integrations/pull_create_test.go (+7 -13)
📝 integrations/pull_merge_test.go (+5 -10)
📝 integrations/release_test.go (+1 -1)
📝 integrations/repo_commits_test.go (+15 -11)
📝 integrations/repo_fork_test.go (+8 -14)
📝 integrations/repo_test.go (+3 -3)
📝 integrations/signup_test.go (+6 -10)
📝 models/fixtures/user.yml (+2 -0)

📄 Description

Move error-checking and other shared boilerplate to helper functions; makes tests less verbose.


🔄 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/1979 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 6/15/2017 **Status:** ✅ Merged **Merged:** 6/17/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `refactor/integration_test` --- ### 📝 Commits (1) - [`a84e002`](https://github.com/go-gitea/gitea/commit/a84e0024ee2cc8de33ad2102c10aefc1c0d264f5) Consolidate boilerplate in integration tests ### 📊 Changes **16 files changed** (+149 additions, -168 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_team_test.go` (+1 -1) 📝 `integrations/change_default_branch_test.go` (+15 -21) 📝 `integrations/delete_user_test.go` (+5 -9) 📝 `integrations/editor_test.go` (+35 -47) 📝 `integrations/html_helper.go` (+9 -6) 📝 `integrations/integration_test.go` (+33 -16) 📝 `integrations/issue_test.go` (+2 -3) 📝 `integrations/pull_compare_test.go` (+2 -3) 📝 `integrations/pull_create_test.go` (+7 -13) 📝 `integrations/pull_merge_test.go` (+5 -10) 📝 `integrations/release_test.go` (+1 -1) 📝 `integrations/repo_commits_test.go` (+15 -11) 📝 `integrations/repo_fork_test.go` (+8 -14) 📝 `integrations/repo_test.go` (+3 -3) 📝 `integrations/signup_test.go` (+6 -10) 📝 `models/fixtures/user.yml` (+2 -0) </details> ### 📄 Description Move error-checking and other shared boilerplate to helper functions; makes tests less verbose. --- <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:03:34 -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#16156