gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant-frontends] 01/02: test donations proposal c


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant-frontends] 01/02: test donations proposal creation ; URL arguments MUST be checked.
Date: Fri, 28 Jul 2017 12:38:50 +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 7b72f5a68771954641b10998aed13b2e26a20e43
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jul 28 12:35:41 2017 +0200

    test donations proposal creation ; URL arguments MUST be checked.
---
 talerfrontends/donations/donations.py | 1 -
 talerfrontends/tests.py               | 5 +++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/talerfrontends/donations/donations.py 
b/talerfrontends/donations/donations.py
index 8edf892..2b52c84 100644
--- a/talerfrontends/donations/donations.py
+++ b/talerfrontends/donations/donations.py
@@ -115,7 +115,6 @@ def generate_contract():
             jurisdiction="none",
         ),
     )
-    print("order: ", order)
     r = requests.post(urljoin(BACKEND_URL, 'proposal'), json=dict(order=order))
     return flask.jsonify(r.json()), r.status_code
 
diff --git a/talerfrontends/tests.py b/talerfrontends/tests.py
index 2c4fb18..e72217f 100755
--- a/talerfrontends/tests.py
+++ b/talerfrontends/tests.py
@@ -21,6 +21,11 @@ class DonationsTestCase(unittest.TestCase):
         response = self.app.get("/") 
         assert 200 == response.status_code
 
+    def test_proposal_creation(self):
+        qs = "/generate-contract?donation_receiver=Tor&donation_amount=1.0"
+        response = self.app.get(qs)
+        assert 200 == response.status_code
+
 class BlogTestCase(unittest.TestCase):
     def setUp(self):
         bapp.testing = True

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



reply via email to

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