mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 15:42:27 -05:00
testing: Add more test data
This commit is contained in:
parent
5d50753bc8
commit
2246a4bff9
@ -143,6 +143,13 @@ var data = []TestData{
|
|||||||
Password: "hunter2",
|
Password: "hunter2",
|
||||||
Email: "jsmith@example.com",
|
Email: "jsmith@example.com",
|
||||||
},
|
},
|
||||||
|
User{
|
||||||
|
DefaultCurrency: 978, // Euro
|
||||||
|
Name: "Billy Bob",
|
||||||
|
Username: "bbob6",
|
||||||
|
Password: "#)$&!KF(*ADAHK#@*(FAJSDkalsdf98af32klhf98sd8a'2938LKJD",
|
||||||
|
Email: "bbob+moneygo@my-domain.com",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
securities: []handlers.Security{
|
securities: []handlers.Security{
|
||||||
handlers.Security{
|
handlers.Security{
|
||||||
@ -193,11 +200,18 @@ var data = []TestData{
|
|||||||
Type: handlers.Expense,
|
Type: handlers.Expense,
|
||||||
Name: "Groceries",
|
Name: "Groceries",
|
||||||
},
|
},
|
||||||
|
handlers.Account{
|
||||||
|
UserId: 0,
|
||||||
|
SecurityId: 0,
|
||||||
|
ParentAccountId: 2,
|
||||||
|
Type: handlers.Expense,
|
||||||
|
Name: "Cable",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
transactions: []handlers.Transaction{
|
transactions: []handlers.Transaction{
|
||||||
handlers.Transaction{
|
handlers.Transaction{
|
||||||
UserId: 0,
|
UserId: 0,
|
||||||
Description: "blah",
|
Description: "weekly groceries",
|
||||||
Date: time.Date(2017, time.October, 15, 1, 16, 59, 0, time.UTC),
|
Date: time.Date(2017, time.October, 15, 1, 16, 59, 0, time.UTC),
|
||||||
Splits: []*handlers.Split{
|
Splits: []*handlers.Split{
|
||||||
&handlers.Split{
|
&handlers.Split{
|
||||||
@ -214,6 +228,25 @@ var data = []TestData{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
handlers.Transaction{
|
||||||
|
UserId: 0,
|
||||||
|
Description: "Cable",
|
||||||
|
Date: time.Date(2017, time.September, 1, 0, 00, 00, 0, time.UTC),
|
||||||
|
Splits: []*handlers.Split{
|
||||||
|
&handlers.Split{
|
||||||
|
Status: handlers.Reconciled,
|
||||||
|
AccountId: 1,
|
||||||
|
SecurityId: -1,
|
||||||
|
Amount: "-39.99",
|
||||||
|
},
|
||||||
|
&handlers.Split{
|
||||||
|
Status: handlers.Entered,
|
||||||
|
AccountId: 4,
|
||||||
|
SecurityId: -1,
|
||||||
|
Amount: "39.99",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user