summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-03-11 03:46:53 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-11 16:46:53 +0800
commit3803f257fb5cfa3419f0d91ccbae1c128f0fcca1 (patch)
treef771af0252ae57f9be20ff56952a34aeb9c820ab /models/fixtures
parent1e3548b7e764c60aad2eb315a65e146264c11a7d (diff)
downloadgitea-3803f257fb5cfa3419f0d91ccbae1c128f0fcca1.tar.gz
gitea-3803f257fb5cfa3419f0d91ccbae1c128f0fcca1.zip
Move user_follow to separate file (#1210)
Also add unit tests
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/follow.yml4
-rw-r--r--models/fixtures/user.yml3
2 files changed, 7 insertions, 0 deletions
diff --git a/models/fixtures/follow.yml b/models/fixtures/follow.yml
new file mode 100644
index 0000000000..53db1e88b1
--- /dev/null
+++ b/models/fixtures/follow.yml
@@ -0,0 +1,4 @@
+-
+ id: 1
+ user_id: 4
+ follow_id: 2
diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml
index 5a2dd2f080..409747aa12 100644
--- a/models/fixtures/user.yml
+++ b/models/fixtures/user.yml
@@ -26,6 +26,7 @@
avatar_email: user2@example.com
num_repos: 2
num_stars: 2
+ num_followers: 1
-
id: 3
@@ -56,6 +57,7 @@
avatar: avatar4
avatar_email: user4@example.com
num_repos: 0
+ num_following: 1
-
id: 5
@@ -72,6 +74,7 @@
num_repos: 1
allow_create_organization: false
is_active: true
+ num_following: 0
-
id: 6