From ceaefbd0da8158d5e05a4e9738ee047f97217f76 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 30 Nov 2017 17:49:30 +0100 Subject: separate submit URL --- 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 c2104bd..56e66e4 100644 --- a/talersurvey/tests.py +++ b/talersurvey/tests.py @@ -23,11 +23,11 @@ class SurveyTestCase(unittest.TestCase): "exchange_uri": "http://exchange.example.com/", "expiration": "/Date(2018)/"} mocked_post.return_value = ret_post - self.app.post("/") + self.app.post("/submit-survey") mocked_post.assert_called_with( "http://backend.test.taler.net/tip-authorize", json={ - "pickup_url": "http://localhost/pick", + "pickup_url": "http://localhost/tip-pickup", "amount": { "value": 1, "fraction": 0, @@ -41,7 +41,7 @@ class SurveyTestCase(unittest.TestCase): ret_post.status_code = 200 ret_post.json.return_value = {} mocked_post.return_value = ret_post - self.app.post("/pick", + self.app.post("/tip-pickup", data="{}", content_type="application/json") mocked_post.assert_called_with( -- cgit v1.2.3