gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: testing integration API withdrawal


From: gnunet
Subject: [taler-bank] branch master updated: testing integration API withdrawal
Date: Fri, 28 Aug 2020 11:53:38 +0200

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

ms pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 33b8dc9  testing integration API withdrawal
33b8dc9 is described below

commit 33b8dc974132d5aa8044e59bcbcd4e51ebfe7fe3
Author: MS <ms@taler.net>
AuthorDate: Fri Aug 28 11:53:30 2020 +0200

    testing integration API withdrawal
---
 talerbank/app/tests.py | 17 +++++++++++++++++
 talerbank/app/urls.py  |  1 -
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index 6928277..9f7ba9f 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -172,6 +172,23 @@ class AccessAndIntegrationApiWithdrawTestCase(TestCase):
         )
         self.assertEqual(r.status_code, 409)
 
+    def test_integration_api_withdraw_status(self):
+        wid = self.create_withdrawal()
+        r = self.client.get(reverse("api-withdraw-operation", 
kwargs=dict(withdraw_id=wid)))
+        self.assertEqual(r.status_code, 200)
+
+    def test_integration_api_withdraw_confirm(self):
+        wid = self.create_withdrawal()
+        r = self.client.post(
+            reverse("api-withdraw-operation", kwargs=dict(withdraw_id=wid)),
+            data=dict(
+                
reserve_pub="FXWC2JHBY8B0XE2MMGAJ9TGPY307TN12HVEKYSTN6HE3GTHTF8XG",
+                selected_exchange="payto://x-taler-bank/localhost/RandomUser"),
+            content_type="application/json"
+        )
+        self.assertEqual(r.status_code, 200)
+        print(r.content.decode("utf-8"))
+
 class AccessApiBalanceTestCase(TestCase):
     def setUp(self):
         clear_db()
diff --git a/talerbank/app/urls.py b/talerbank/app/urls.py
index 3839922..ffdd247 100644
--- a/talerbank/app/urls.py
+++ b/talerbank/app/urls.py
@@ -74,7 +74,6 @@ taler_bank_accounts_api_patterns = [
 ]
 
 urlpatterns = [
-    path("taler-bank-api/", include(taler_bank_api_patterns)),
     path("", include(taler_bank_accounts_api_patterns)),
     path("taler-wire-gateway/", include(taler_wire_gateway_patterns)),
     path("", RedirectView.as_view(pattern_name="profile"), name="index"),

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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