summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-06 20:09:31 +0800
committerGitHub <noreply@github.com>2019-05-06 20:09:31 +0800
commit2382f1b057bb582abc87a030f0463e3b1f6fb118 (patch)
treea9876ef817bf72ddeafbb0a5721aaa49f0f7650d /models/fixtures
parentdab38c375df5c4719d35f1be29278d254d68390f (diff)
downloadgitea-2382f1b057bb582abc87a030f0463e3b1f6fb118.tar.gz
gitea-2382f1b057bb582abc87a030f0463e3b1f6fb118.zip
fix 500 when reviewer is deleted with integration tests (#6856)
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/comment.yml12
-rw-r--r--models/fixtures/review.yml9
2 files changed, 21 insertions, 0 deletions
diff --git a/models/fixtures/comment.yml b/models/fixtures/comment.yml
index 6abd26973b..864313cac3 100644
--- a/models/fixtures/comment.yml
+++ b/models/fixtures/comment.yml
@@ -52,3 +52,15 @@
tree_path: "README.md"
created_unix: 946684812
invalidated: true
+
+-
+ id: 7
+ type: 21 # code comment
+ poster_id: 100
+ issue_id: 3
+ content: "a review from a deleted user"
+ line: -4
+ review_id: 10
+ tree_path: "README.md"
+ created_unix: 946684812
+ invalidated: true \ No newline at end of file
diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml
index 515f0d77f8..a0122dea99 100644
--- a/models/fixtures/review.yml
+++ b/models/fixtures/review.yml
@@ -70,3 +70,12 @@
content: "New review 3 rejected"
updated_unix: 946684810
created_unix: 946684810
+
+-
+ id: 10
+ type: 3
+ reviewer_id: 100
+ issue_id: 3
+ content: "a deleted user's review"
+ updated_unix: 946684810
+ created_unix: 946684810 \ No newline at end of file