gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant-frontends] 02/02: test /donate endpoint


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant-frontends] 02/02: test /donate endpoint
Date: Fri, 28 Jul 2017 13:13:14 +0200

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

marcello pushed a commit to branch master
in repository merchant-frontends.

commit 2ac0880ef86033c19d1db3289811cde0079cd6fb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jul 28 13:12:53 2017 +0200

    test /donate endpoint
---
 talerfrontends/tests.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/talerfrontends/tests.py b/talerfrontends/tests.py
index 9178127..71944b2 100755
--- a/talerfrontends/tests.py
+++ b/talerfrontends/tests.py
@@ -32,7 +32,13 @@ class DonationsTestCase(unittest.TestCase):
         response = self.app.get(bad_qs)
         assert 400 == response.status_code
         response = self.app.get(bad_receiver)
-        print(response.data)
+        assert 404 == response.status_code
+
+    def test_donate(self):
+        qs = 
"/donate?donation_receiver=Tor&donation_amount=1&payment_system=taler"
+        response = self.app.get(qs)
+        print(response.status_code)
+        assert 402 == response.status_code
 
 class BlogTestCase(unittest.TestCase):
     def setUp(self):

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



reply via email to

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