1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-30 14:18:38 +00:00

Unit tests for models/pull.go

This commit is contained in:
Ethan Koenig
2017-01-01 13:15:09 -05:00
parent 1a7fc53c98
commit 72bfabfada
8 changed files with 421 additions and 21 deletions

25
models/fixtures/user.yml Normal file
View File

@@ -0,0 +1,25 @@
- # NOTE: this user (id=1) is the admin
id: 1
lower_name: user1
name: user1
email: user1@example.com
passwd: password
type: 0 # individual
salt: salt
is_admin: true
avatar: avatar1
avatar_email: user2@example.com
num_repos: 0
-
id: 2
lower_name: user2
name: user2
email: user2@example.com
passwd: password
type: 0 # individual
salt: salt
is_admin: false
avatar: avatar2
avatar_email: user2@example.com
num_repos: 2