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: Setting up the db in or


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: Setting up the db in order to test /add/incoming. Data persistency needs a fix..
Date: Wed, 01 Feb 2017 17:41:19 +0100

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 1e2db9c  Setting up the db in order to test /add/incoming. Data 
persistency needs a fix..
1e2db9c is described below

commit 1e2db9ce48a17d41165543d1be80763ffac5dcfb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Feb 1 17:39:59 2017 +0100

    Setting up the db in order to test /add/incoming.
    Data persistency needs a fix..
---
 talerbank/app/tests.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index a721be7..22f213f 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -85,8 +85,8 @@ class AddIncomingTestCase(TestCase):
                                         password="bank_password")
         bank_account = BankAccount(user=bank,
                                    currency=settings.TALER_CURRENCY)
-        user = User.objects.create_user(username="bank_user",
-                                        password="bank_password")
+        user = User.objects.create_user(username="user_user",
+                                        password="user_password")
         user_account = BankAccount(user=user,
                                    currency=settings.TALER_CURRENCY)
 
@@ -94,5 +94,5 @@ class AddIncomingTestCase(TestCase):
         clearDb()
 
     def test_add_incoming(self):
-       x = BankAccount.objects.get(account_no=1)
-       logger.info(x.account_no)
+       x = BankAccount.objects.all()
+       print(x.len())

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



reply via email to

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