diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-10 00:37:26 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-10 00:37:26 +0100 |
commit | 88cdca2b9618ac7b5374ff666650d13d7f9acda9 (patch) | |
tree | 15e67351e3b30a1df4e209fa84f20c2773fff720 /talerblog/tests.py | |
parent | 41c1a7b7ecb0ebc775e52ce9c61b05920fd4edf9 (diff) | |
download | blog-88cdca2b9618ac7b5374ff666650d13d7f9acda9.tar.gz blog-88cdca2b9618ac7b5374ff666650d13d7f9acda9.tar.bz2 blog-88cdca2b9618ac7b5374ff666650d13d7f9acda9.zip |
no more /generate-contract in test
Diffstat (limited to 'talerblog/tests.py')
-rw-r--r-- | talerblog/tests.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/talerblog/tests.py b/talerblog/tests.py index e72f316..8ad3556 100644 --- a/talerblog/tests.py +++ b/talerblog/tests.py @@ -49,37 +49,6 @@ class BlogTestCase(unittest.TestCase): "reason": "Demo reimbursement", "instance": self.instance}) - @patch("requests.post") - def test_proposal_creation(self, mocked_post): - ret_post = MagicMock() - ret_post.status_code = 200 - ret_post.json.return_value = {} - mocked_post.return_value = ret_post - self.app.get("/generate-contract?nonce=55&article_name=Check_Me") - mocked_post.assert_called_with( - "http://backend.test.taler.net/proposal", - json={ - "order": { - "summary": "Check Me", - "nonce": "55", - "amount": blog.ARTICLE_AMOUNT, - "max_fee": { - "value": 1, - "fraction": 0, - "currency": CURRENCY}, - "products": [{ - "description": "Essay: Check Me", - "quantity": 1, - "product_id": 0, - "price": blog.ARTICLE_AMOUNT}], - "fulfillment_url": "http://localhost/essay/Check_Me", - "pay_url": "http://localhost/pay", - "merchant": { - "instance": TC["blog"]["instance"].value_string(required=True), - "address": "nowhere", - "name": "Kudos Inc.", - "jurisdiction": "none"}, - "extra": {"article_name": "Check_Me"}}}) if __name__ == "__main__": unittest.main() |