gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-bank] branch master updated: add dummy transactions


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: add dummy transactions in test
Date: Sat, 06 May 2017 00:02:08 +0200

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

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 9cdc7cd  add dummy transactions in test
9cdc7cd is described below

commit 9cdc7cd6768afde7fd59920d9a961a43edc1d1f2
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat May 6 00:01:52 2017 +0200

    add dummy transactions in test
---
 talerbank/app/tests.py | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index 77aa3e0..5215591 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -92,9 +92,16 @@ class HistoryTestCase(TestCase):
 
     def setUp(self):
         user = User.objects.create_user(username='User', password="Password")
-        uba = BankAccount(user=user, currency=settings.TALER_CURRENCY)
-        uba.account_no = 1
-        uba.save() 
+        ub = BankAccount(user=user, currency=settings.TALER_CURRENCY)
+        ub.account_no = 1
+        ub.balance_obj = dict(value=100, fraction=0, 
currency=settings.TALER_CURRENCY)
+        ub.save() 
+        user_passive = User.objects.create_user(username='UserP', 
password="PasswordP")
+        ub_p = BankAccount(user=user_passive, currency=settings.TALER_CURRENCY)
+        ub_p.save() 
+        wire_transfer(dict(value=1, fraction=0, 
currency=settings.TALER_CURRENCY), ub, ub_p, subject="a")
+        wire_transfer(dict(value=1, fraction=0, 
currency=settings.TALER_CURRENCY), ub, ub_p, subject="b")
+        wire_transfer(dict(value=1, fraction=0, 
currency=settings.TALER_CURRENCY), ub, ub_p, subject="c")
 
     def tearDown(self):
         clearDb()

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



reply via email to

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