From d0960b80354c0c8326063c8408d2274adb50dec1 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sat, 4 Feb 2017 07:37:26 -0500 Subject: Move IssueUser code to separate file (#836) Also add unit tests --- models/fixtures/issue.yml | 1 + models/fixtures/issue_user.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 models/fixtures/issue_user.yml (limited to 'models/fixtures') 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 -- cgit v1.2.3