gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: Testing.


From: gnunet
Subject: [taler-bank] branch master updated: Testing.
Date: Fri, 28 Aug 2020 10:20:23 +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 bda295d  Testing.
bda295d is described below

commit bda295d06a8464f82895362e2462ded00aaf99ea
Author: MS <ms@taler.net>
AuthorDate: Fri Aug 28 10:19:46 2020 +0200

    Testing.
    
    Moving Access and Integration API tests under
    the same class, in order to reuse some of the
    harness.
---
 talerbank/app/tests.py | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index f5a70b0..98a6e72 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -72,10 +72,7 @@ class IntegrationConfigTestCase(TestCase):
         r = c.get("/config")
         self.assertEqual(r.status_code, 200)
 
-# Testing the "Access API":
-#     (testing) registration + ask for balance
-#     withdraw: create / ask status / abort / confirm.
-class AccessApiWithdrawTestCase(TestCase):
+class AccessAndIntegrationApiWithdrawTestCase(TestCase):
     def setUp(self):
         clear_db()
         self.user = User.objects.create_user(username="RandomUser", 
password="XYZ")
@@ -101,10 +98,10 @@ class AccessApiWithdrawTestCase(TestCase):
         self.assertTrue(withdrawal_id)
         return withdrawal_id
 
-    def test_withdraw_create(self):
+    def test_accees_withdraw_create(self):
         self.create_withdrawal()
 
-    def test_withdraw_status(self):
+    def test_accees_withdraw_status(self):
         withdrawal_id = self.create_withdrawal()
         r = self.client.get(
             reverse("access-api-withdrawal-status",
@@ -113,7 +110,7 @@ class AccessApiWithdrawTestCase(TestCase):
         )
         self.assertEqual(r.status_code, 200)
 
-    def test_withdraw_abort(self):
+    def test_accees_withdraw_abort(self):
         withdrawal_id = self.create_withdrawal()
         r = self.client.post(
             reverse("access-api-withdrawal-abort",
@@ -122,7 +119,7 @@ class AccessApiWithdrawTestCase(TestCase):
         )
         self.assertEqual(r.status_code, 200)
 
-    def test_withdraw_confirm(self):
+    def test_accees_withdraw_confirm(self):
         withdrawal_id = self.create_withdrawal()
         r = self.client.post(
             reverse("access-api-withdrawal-confirm",
@@ -131,7 +128,7 @@ class AccessApiWithdrawTestCase(TestCase):
         )
         self.assertEqual(r.status_code, 200)
 
-    def test_withdraw_abort_then_confirm(self):
+    def test_accees_withdraw_abort_then_confirm(self):
         withdrawal_id = self.create_withdrawal()
         r = self.client.post(
             reverse("access-api-withdrawal-abort",

-- 
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]