diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-01-01 13:15:09 -0500 |
---|---|---|
committer | Ethan Koenig <ethantkoenig@gmail.com> | 2017-01-06 10:08:23 -0500 |
commit | 72bfabfada8fc485b88eb4547b7d3575789a69c8 (patch) | |
tree | 838a128004ac7e3417816171c1f3e60b98edcd57 /models/fixtures/pull_request.yml | |
parent | 1a7fc53c98f06f79955d217f91c8a5553e5a27b3 (diff) | |
download | gitea-72bfabfada8fc485b88eb4547b7d3575789a69c8.tar.gz gitea-72bfabfada8fc485b88eb4547b7d3575789a69c8.zip |
Unit tests for models/pull.go
Diffstat (limited to 'models/fixtures/pull_request.yml')
-rw-r--r-- | models/fixtures/pull_request.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/models/fixtures/pull_request.yml b/models/fixtures/pull_request.yml new file mode 100644 index 0000000000..34de6693ee --- /dev/null +++ b/models/fixtures/pull_request.yml @@ -0,0 +1,28 @@ +- + id: 1 + type: 0 # gitea pull request + status: 2 # mergable + issue_id: 2 + index: 1 + head_repo_id: 1 + base_repo_id: 1 + head_user_name: user1 + head_branch: branch1 + base_branch: master + merge_base: 1234567890abcdef + has_merged: true + merger_id: 2 + +- + id: 2 + type: 0 # gitea pull request + status: 1 # checking + issue_id: 3 + index: 2 + head_repo_id: 1 + base_repo_id: 1 + head_user_name: user1 + head_branch: branch2 + base_branch: master + merge_base: fedcba9876543210 + has_merged: false |