diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-05-20 04:48:22 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-05-20 16:48:22 +0800 |
commit | cf02cd7ba0c94165743660cf30f0cbb5a73a385e (patch) | |
tree | 6f09dce7c705041df1e042750137e379b0af66dc /models/fixtures | |
parent | 85a73965256411c36ecc050eeb7967d3c8ef20d5 (diff) | |
download | gitea-cf02cd7ba0c94165743660cf30f0cbb5a73a385e.tar.gz gitea-cf02cd7ba0c94165743660cf30f0cbb5a73a385e.zip |
Fix and test for delete user (#1713)
* Fix and test for delete user
* Run updates in batches
* Unit test
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/follow.yml | 10 | ||||
-rw-r--r-- | models/fixtures/user.yml | 9 |
2 files changed, 16 insertions, 3 deletions
diff --git a/models/fixtures/follow.yml b/models/fixtures/follow.yml index 53db1e88b1..480fa065c7 100644 --- a/models/fixtures/follow.yml +++ b/models/fixtures/follow.yml @@ -2,3 +2,13 @@ id: 1 user_id: 4 follow_id: 2 + +- + id: 2 + user_id: 8 + follow_id: 2 + +- + id: 3 + user_id: 2 + follow_id: 8 diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index dd8554c58b..1777cff77e 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -4,9 +4,9 @@ name: user1 full_name: User One email: user1@example.com - passwd: password + passwd: 7d93daa0d1e6f2305cc8fa496847d61dc7320bb16262f9c55dd753480207234cdd96a93194e408341971742f4701772a025a # password type: 0 # individual - salt: salt + salt: ZogKvWdyEx is_admin: true avatar: avatar1 avatar_email: user1@example.com @@ -26,7 +26,8 @@ avatar_email: user2@example.com num_repos: 2 num_stars: 2 - num_followers: 1 + num_followers: 2 + num_following: 1 is_active: true - @@ -123,6 +124,8 @@ avatar_email: user8@example.com num_repos: 0 is_active: true + num_followers: 1 + num_following: 1 - id: 9 |