[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-backoffice] branch master updated: testing /track/tr
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-backoffice] branch master updated: testing /track/transaction |
Date: |
Tue, 09 Jan 2018 13:26:41 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository backoffice.
The following commit(s) were added to refs/heads/master by this push:
new 29bda13 testing /track/transaction
29bda13 is described below
commit 29bda13eeba3b26a0e49e8d114cf6c5e2e6857ed
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jan 9 13:26:27 2018 +0100
testing /track/transaction
---
talerbackoffice/tests.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/talerbackoffice/tests.py b/talerbackoffice/tests.py
index 3e33435..704c2b9 100644
--- a/talerbackoffice/tests.py
+++ b/talerbackoffice/tests.py
@@ -23,6 +23,22 @@ class BackofficeTestCase(unittest.TestCase):
soup.find("select").option.contents[0])
self.assertEqual(response.status_code, 200)
+
+ @patch("requests.get")
+ def test_track_order(self, mocked_get):
+ ret = MagicMock()
+ ret.status_code = 200
+ ret.json.return_value = {}
+ mocked_get.return_value = ret
+ response = self.app.get("/track/order?para1=1¶2=2")
+ mocked_get.assert_called_with(
+ "http://backend.example.com/track/transaction",
+ params=dict(para1='1', para2='2'))
+ # check data is returned verbatim from the backend
+ self.assertEqual(response.data, b'{}\n')
+
+
+
@patch("requests.get")
def test_track_transfer(self, mocked_get):
ret = MagicMock()
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-backoffice] branch master updated: testing /track/transaction,
gnunet <=