More unit tests (#34)
This commit is contained in:
@ -15,4 +15,10 @@
|
||||
title: Test3
|
||||
description: Lorem Ipsum
|
||||
owner_id: 3
|
||||
namespace_id: 2
|
||||
namespace_id: 2
|
||||
-
|
||||
id: 4
|
||||
title: Test4
|
||||
description: Lorem Ipsum
|
||||
owner_id: 3
|
||||
namespace_id: 3
|
@ -7,4 +7,9 @@
|
||||
id: 2
|
||||
name: testnamespace2
|
||||
description: Lorem Ipsum
|
||||
owner_id: 2
|
||||
owner_id: 2
|
||||
-
|
||||
id: 3
|
||||
name: testnamespace3
|
||||
description: Lorem Ipsum
|
||||
owner_id: 3
|
41
pkg/models/fixtures/tasks.yml
Normal file
41
pkg/models/fixtures/tasks.yml
Normal file
@ -0,0 +1,41 @@
|
||||
- id: 1
|
||||
text: 'task #1'
|
||||
created_by_id: 1
|
||||
list_id: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
- id: 2
|
||||
text: 'task #2 done'
|
||||
done: true
|
||||
created_by_id: 1
|
||||
list_id: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
- id: 3
|
||||
text: 'task #3 high prio'
|
||||
created_by_id: 1
|
||||
list_id: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
priority: 100
|
||||
- id: 4
|
||||
text: 'task #4 low prio'
|
||||
created_by_id: 1
|
||||
list_id: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
priority: 1
|
||||
- id: 5
|
||||
text: 'task #5 higher due date'
|
||||
created_by_id: 1
|
||||
list_id: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
due_date_unix: 1543636724
|
||||
- id: 6
|
||||
text: 'task #6 lower due date'
|
||||
created_by_id: 1
|
||||
list_id: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
due_date_unix: 1543616724
|
6
pkg/models/fixtures/team_list.yml
Normal file
6
pkg/models/fixtures/team_list.yml
Normal file
@ -0,0 +1,6 @@
|
||||
- id: 1
|
||||
team_id: 1
|
||||
list_id: 3
|
||||
- id: 2
|
||||
team_id: 2
|
||||
list_id: 3
|
6
pkg/models/fixtures/team_namespaces.yml
Normal file
6
pkg/models/fixtures/team_namespaces.yml
Normal file
@ -0,0 +1,6 @@
|
||||
- id: 1
|
||||
team_id: 1
|
||||
namespace_id: 3
|
||||
- id: 2
|
||||
team_id: 2
|
||||
namespace_id: 3
|
@ -13,3 +13,9 @@
|
||||
username: 'user3'
|
||||
password: '1234'
|
||||
email: 'johndoe@example.com'
|
||||
-
|
||||
id: 4
|
||||
username: 'user4'
|
||||
password: '1234'
|
||||
email: 'johndoe@example.com'
|
||||
email_confirm_token: tiepiQueed8ahc7zeeFe1eveiy4Ein8osooxegiephauph2Ael
|
6
pkg/models/fixtures/users_list.yml
Normal file
6
pkg/models/fixtures/users_list.yml
Normal file
@ -0,0 +1,6 @@
|
||||
- id: 1
|
||||
user_id: 1
|
||||
list_id: 3
|
||||
- id: 2
|
||||
user_id: 2
|
||||
list_id: 3
|
6
pkg/models/fixtures/users_namespace.yml
Normal file
6
pkg/models/fixtures/users_namespace.yml
Normal file
@ -0,0 +1,6 @@
|
||||
- id: 1
|
||||
user_id: 1
|
||||
namespace_id: 3
|
||||
- id: 2
|
||||
user_id: 2
|
||||
namespace_id: 3
|
Reference in New Issue
Block a user