summaryrefslogtreecommitdiffstats
path: root/models/review_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-14 10:57:36 +0800
committerGitHub <noreply@github.com>2019-11-14 10:57:36 +0800
commitdad67cae5455f346f122ab26ec50ac4e029cacf4 (patch)
treee16407c08bb1c5ca07b9f3601e55e2c13eb79ac8 /models/review_test.go
parent16a43156a85710fd01fc7d8e5092fb82371fa271 (diff)
downloadgitea-dad67cae5455f346f122ab26ec50ac4e029cacf4.tar.gz
gitea-dad67cae5455f346f122ab26ec50ac4e029cacf4.zip
Refactor pull request review (#8954)
* refactor submit review * remove unnecessary code * remove unused comment * fix lint * remove duplicated actions * remove duplicated actions * fix typo * fix comment content
Diffstat (limited to 'models/review_test.go')
-rw-r--r--models/review_test.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/models/review_test.go b/models/review_test.go
index f8e8086dca..3e7563b434 100644
--- a/models/review_test.go
+++ b/models/review_test.go
@@ -98,14 +98,6 @@ func TestCreateReview(t *testing.T) {
AssertExistsAndLoadBean(t, &Review{Content: "New Review"})
}
-func TestUpdateReview(t *testing.T) {
- assert.NoError(t, PrepareTestDatabase())
- review := AssertExistsAndLoadBean(t, &Review{ID: 1}).(*Review)
- review.Content = "Updated Review"
- assert.NoError(t, UpdateReview(review))
- AssertExistsAndLoadBean(t, &Review{ID: 1, Content: "Updated Review"})
-}
-
func TestGetReviewersByPullID(t *testing.T) {
assert.NoError(t, PrepareTestDatabase())