From 050e259b14649fe2238b627116b88d0778be498e Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 28 Nov 2017 13:14:36 +0100 Subject: /pick url gets POSTed --- talersurvey/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'talersurvey/tests.py') diff --git a/talersurvey/tests.py b/talersurvey/tests.py index 4f4e4e2..0c7c9dc 100644 --- a/talersurvey/tests.py +++ b/talersurvey/tests.py @@ -22,11 +22,11 @@ class SurveyTestCase(unittest.TestCase): "exchange_uri": "http://exchange.example.com/", "expiration": "/Date(2018)/"} mocked_post.return_value = ret_post - # Actual preference's ignored. self.app.post("/") mocked_post.assert_called_with( "http://backend.test.taler.net/tip-authorize", json={ + "pickup_url": "http://localhost/pick", "amount": { "value": 1, "fraction": 0, @@ -40,12 +40,12 @@ class SurveyTestCase(unittest.TestCase): ret_post.status_code = 200 ret_post.json.return_value = {} mocked_post.return_value = ret_post - self.app.post("/pick?tip_id=44", + self.app.post("/pick", data="{}", content_type="application/json") mocked_post.assert_called_with( "http://backend.test.taler.net/tip-pickup", - json={"tip_id": "44"}) + json={}) if __name__ == "__main__": unittest.main() -- cgit v1.2.3