Unit tests for models/pull.go
This commit is contained in:
parent
1a7fc53c98
commit
72bfabfada
8 changed files with 421 additions and 21 deletions
21
models/fixtures/repository.yml
Normal file
21
models/fixtures/repository.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
-
|
||||
id: 1
|
||||
owner_id: 2
|
||||
lower_name: repo1
|
||||
name: repo1
|
||||
is_private: false
|
||||
num_issues: 1
|
||||
num_closed_issues: 0
|
||||
num_pulls: 2
|
||||
num_closed_pulls: 0
|
||||
|
||||
-
|
||||
id: 2
|
||||
owner_id: 2
|
||||
lower_name: repo2
|
||||
name: repo2
|
||||
is_private: true
|
||||
num_issues: 1
|
||||
num_closed_issues: 1
|
||||
num_pulls: 0
|
||||
num_closed_pulls: 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue