gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-survey] branch master updated: testing /pick


From: gnunet
Subject: [GNUnet-SVN] [taler-survey] branch master updated: testing /pick
Date: Fri, 24 Nov 2017 12:30:27 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository survey.

The following commit(s) were added to refs/heads/master by this push:
     new a47bf3d  testing /pick
a47bf3d is described below

commit a47bf3dd04d182638fedf0f6edb99b73fc1efd3e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Nov 24 12:30:17 2017 +0100

    testing /pick
---
 talersurvey/tests.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/talersurvey/tests.py b/talersurvey/tests.py
index f244ae7..4f4e4e2 100644
--- a/talersurvey/tests.py
+++ b/talersurvey/tests.py
@@ -34,5 +34,18 @@ class SurveyTestCase(unittest.TestCase):
                 "instance": "default",
                 "justification": "Payment methods survey"})
 
+    @patch("requests.post")
+    def test_pick(self, mocked_post):
+        ret_post = MagicMock()
+        ret_post.status_code = 200
+        ret_post.json.return_value = {}
+        mocked_post.return_value = ret_post
+        self.app.post("/pick?tip_id=44",
+                      data="{}",
+                      content_type="application/json")
+        mocked_post.assert_called_with(
+            "http://backend.test.taler.net/tip-pickup";,
+            json={"tip_id": "44"})
+
 if __name__ == "__main__":
     unittest.main()

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]