summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-02-04 07:37:26 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-04 20:37:26 +0800
commitd0960b80354c0c8326063c8408d2274adb50dec1 (patch)
tree7c082f5d30bee7a526c42a33031981b247eb537e /models/fixtures
parentd4035d1cb143a758463f2e3ee9d037fd5dab72f9 (diff)
downloadgitea-d0960b80354c0c8326063c8408d2274adb50dec1.tar.gz
gitea-d0960b80354c0c8326063c8408d2274adb50dec1.zip
Move IssueUser code to separate file (#836)
Also add unit tests
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/issue.yml1
-rw-r--r--models/fixtures/issue_user.yml23
2 files changed, 24 insertions, 0 deletions
diff --git a/models/fixtures/issue.yml b/models/fixtures/issue.yml
index 8bcadb0aae..662f2235d7 100644
--- a/models/fixtures/issue.yml
+++ b/models/fixtures/issue.yml
@@ -3,6 +3,7 @@
repo_id: 1
index: 1
poster_id: 1
+ assignee_id: 1
name: issue1
content: content1
is_closed: false
diff --git a/models/fixtures/issue_user.yml b/models/fixtures/issue_user.yml
new file mode 100644
index 0000000000..b3f98a71d3
--- /dev/null
+++ b/models/fixtures/issue_user.yml
@@ -0,0 +1,23 @@
+-
+ id: 1
+ uid: 1
+ issue_id: 1
+ is_read: true
+ is_assigned: true
+ is_mentioned: false
+
+-
+ id: 2
+ uid: 2
+ issue_id: 1
+ is_read: true
+ is_assigned: false
+ is_mentioned: false
+
+-
+ id: 3
+ uid: 4
+ issue_id: 1
+ is_read: false
+ is_assigned: false
+ is_mentioned: false