2018-11-07 11:08:42 -08:00
|
|
|
import random
|
2018-11-13 05:58:02 -08:00
|
|
|
|
2018-11-07 11:08:42 -08:00
|
|
|
from grant.proposal.models import CATEGORIES
|
|
|
|
|
|
|
|
|
2018-11-13 05:58:02 -08:00
|
|
|
test_user = {
|
2018-11-07 11:08:42 -08:00
|
|
|
"displayName": 'Groot',
|
|
|
|
"emailAddress": 'iam@groot.com',
|
2018-12-14 11:36:22 -08:00
|
|
|
"password": "p4ssw0rd",
|
2018-11-07 11:08:42 -08:00
|
|
|
"title": 'I am Groot!',
|
|
|
|
"avatar": {
|
2018-12-14 11:36:22 -08:00
|
|
|
"link": 'https://your-bucket-name.s3.amazonaws.com/avatars/1.b0be8bf740ce419a80ea9e1f55974ce1.png'
|
2018-11-07 11:08:42 -08:00
|
|
|
},
|
|
|
|
"socialMedias": [
|
|
|
|
{
|
2019-01-02 10:23:02 -08:00
|
|
|
"service": 'GITHUB',
|
|
|
|
"username": 'groot'
|
2018-11-07 11:08:42 -08:00
|
|
|
}
|
2019-01-04 11:03:37 -08:00
|
|
|
]
|
2018-11-07 11:08:42 -08:00
|
|
|
}
|
|
|
|
|
2018-11-13 05:58:02 -08:00
|
|
|
test_team = [test_user]
|
2018-11-07 11:08:42 -08:00
|
|
|
|
2018-11-29 13:54:26 -08:00
|
|
|
test_other_user = {
|
|
|
|
"displayName": 'Faketoshi',
|
|
|
|
"emailAddress": 'fake@toshi.com',
|
2018-12-14 11:36:22 -08:00
|
|
|
"title": 'The Real Fake Satoshi',
|
|
|
|
"password": 'n4k0m0t0'
|
2018-11-29 13:54:26 -08:00
|
|
|
}
|
|
|
|
|
2018-11-07 11:08:42 -08:00
|
|
|
milestones = [
|
|
|
|
{
|
|
|
|
"title": "All the money straightaway",
|
2018-11-29 17:55:14 -08:00
|
|
|
"content": "cool stuff with it",
|
|
|
|
"dateEstimated": "Fri, 30 Nov 2018 01:42:23 GMT",
|
2018-11-07 11:08:42 -08:00
|
|
|
"payoutPercent": "100",
|
|
|
|
"immediatePayout": False
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2018-11-13 05:58:02 -08:00
|
|
|
test_proposal = {
|
|
|
|
"team": test_team,
|
2018-11-07 11:08:42 -08:00
|
|
|
"crowdFundContractAddress": "0x20000",
|
|
|
|
"content": "## My Proposal",
|
|
|
|
"title": "Give Me Money",
|
2018-11-29 17:55:14 -08:00
|
|
|
"brief": "$$$",
|
2018-11-07 11:08:42 -08:00
|
|
|
"milestones": milestones,
|
2018-11-29 17:55:14 -08:00
|
|
|
"category": random.choice(CATEGORIES),
|
|
|
|
"target": "123.456",
|
2018-12-14 11:36:22 -08:00
|
|
|
"payoutAddress": "123",
|
2018-12-28 15:05:34 -08:00
|
|
|
"deadlineDuration": 100
|
2018-11-13 05:58:02 -08:00
|
|
|
}
|
|
|
|
|
2018-11-27 12:26:36 -08:00
|
|
|
test_comment = {
|
2019-01-04 11:03:37 -08:00
|
|
|
"comment": "Test comment"
|
2018-11-27 12:26:36 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
test_reply = {
|
2019-01-04 11:03:37 -08:00
|
|
|
"comment": "Test reply"
|
2018-11-27 12:26:36 -08:00
|
|
|
# Fill in parentCommentId in test
|
|
|
|
}
|