diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-01-08 22:08:36 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-09 11:08:36 +0800 |
commit | 4b23e6a69449b985c74ad797257c30250e60ec9a (patch) | |
tree | c4766acb1d3d2b8dfd0d9253cabcfb3a0ba38a6c /models/fixtures | |
parent | f4feeecc3af089a105c9a1ad976a78cd6856b407 (diff) | |
download | gitea-4b23e6a69449b985c74ad797257c30250e60ec9a.tar.gz gitea-4b23e6a69449b985c74ad797257c30250e60ec9a.zip |
Unit tests for models/action (#619)
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/action.yml | 22 | ||||
-rw-r--r-- | models/fixtures/user.yml | 5 |
2 files changed, 27 insertions, 0 deletions
diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml new file mode 100644 index 0000000000..f4f10dde2b --- /dev/null +++ b/models/fixtures/action.yml @@ -0,0 +1,22 @@ +- + id: 1 + user_id: 2 + op_type: 12 # close issue + act_user_id: 2 + act_user_name: user2 + repo_id: 2 + repo_user_name: user2 + repo_name: repo2 + is_private: true + +- + id: 2 + user_id: 3 + op_type: 2 # rename repo + act_user_id: 3 + act_user_name: user3 + repo_id: 3 + repo_user_name: user3 + repo_name: repo3 # TODO old or new name? + is_private: false + content: oldRepoName diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index cb3b954a22..a38b4016e3 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -2,6 +2,7 @@ id: 1 lower_name: user1 name: user1 + full_name: User One email: user1@example.com passwd: password type: 0 # individual @@ -15,6 +16,7 @@ id: 2 lower_name: user2 name: user2 + full_name: User Two email: user2@example.com passwd: password type: 0 # individual @@ -28,6 +30,7 @@ id: 3 lower_name: user3 name: user3 + full_name: User Three email: user3@example.com passwd: password type: 1 # organization @@ -41,6 +44,7 @@ id: 4 lower_name: user4 name: user4 + full_name: User Four email: user4@example.com passwd: password type: 1 # individual @@ -54,6 +58,7 @@ id: 5 lower_name: user5 name: user5 + full_name: User Five email: user5@example.com passwd: password type: 1 # individual |