Merge branch 'server-side-drafts' into team-invites

This commit is contained in:
Will O'Beirne 2018-11-26 20:21:44 -05:00
commit 1b1797be54
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class TestAPI(BaseUserConfig):
self.assertTrue(comment_res.json)
@patch('grant.proposal.views.validate_contribution_tx', return_value=True)
@patch('grant.web3.proposal.validate_contribution_tx', return_value=True)
def test_create_proposal_contribution(self, mock_validate_contribution_tx):
proposal_res = self.app.post(
"/api/v1/proposals/drafts",
@ -67,7 +67,7 @@ class TestAPI(BaseUserConfig):
eq("amount")
self.assertEqual(proposal_id, res["proposalId"])
@patch('grant.proposal.views.validate_contribution_tx', return_value=True)
@patch('grant.web3.proposal.validate_contribution_tx', return_value=True)
def test_get_proposal_contribution(self, mock_validate_contribution_tx):
proposal_res = self.app.post(
"/api/v1/proposals/drafts",
@ -104,7 +104,7 @@ class TestAPI(BaseUserConfig):
eq("amount")
self.assertEqual(proposal_id, res["proposalId"])
@patch('grant.proposal.views.validate_contribution_tx', return_value=True)
@patch('grant.web3.proposal.validate_contribution_tx', return_value=True)
def test_get_proposal_contributions(self, mock_validate_contribution_tx):
proposal_res = self.app.post(
"/api/v1/proposals/drafts",