diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-04-22 10:19:33 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-04-22 10:19:33 +0200 |
commit | 08062b97f0a3b5c25b72f9c121110baf8fbce5b1 (patch) | |
tree | 6ee3f923db348f681c8f567a5dd6c100309c9bd0 | |
parent | 5f2079a65c97389e2f7b8bdd209ee882f4e49f36 (diff) | |
download | bank-08062b97f0a3b5c25b72f9c121110baf8fbce5b1.tar.gz bank-08062b97f0a3b5c25b72f9c121110baf8fbce5b1.tar.bz2 bank-08062b97f0a3b5c25b72f9c121110baf8fbce5b1.zip |
removing view for non public account history (redundant)
-rw-r--r-- | talerbank/app/history.py | 8 | ||||
-rw-r--r-- | talerbank/app/tests.py | 3 | ||||
-rw-r--r-- | talerbank/app/urls.py | 3 |
3 files changed, 3 insertions, 11 deletions
diff --git a/talerbank/app/history.py b/talerbank/app/history.py index f0a3f8c..f27e144 100644 --- a/talerbank/app/history.py +++ b/talerbank/app/history.py @@ -42,14 +42,6 @@ def extract_history(bank_account): return ret -@login_required -def history_process(request): - number = request.session['account_no'] - account = BankAccount.objects.get(account_no=number) - render_history = extract_history(account) - return render(request, 'history.html', {'history': render_history}) - - def public_accounts_process(request): accounts = [] for item in get_public_accounts(): diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py index 7e1433c..bab5d3d 100644 --- a/talerbank/app/tests.py +++ b/talerbank/app/tests.py @@ -118,6 +118,7 @@ class HistoryTestCase(TestCase): def tearDown(self): logging.disable(logging.NOTSET) + # Extract history from public accounts def test_public_history(self): c = Client() response = c.get(reverse('public-history'), follow=True) @@ -125,8 +126,8 @@ class HistoryTestCase(TestCase): response = c.get(reverse('public-history'), {'account': 'GNUnet'}) self.assertEqual(200, response.status_code) -class CaptchaTestCase(TestCase): +class CaptchaTestCase(TestCase): def test_pin_tan_question(self): c = Client() User.objects.create_user(username='test_pintan', password='test_pintan') diff --git a/talerbank/app/urls.py b/talerbank/app/urls.py index 40bd6b9..bd2d286 100644 --- a/talerbank/app/urls.py +++ b/talerbank/app/urls.py @@ -33,6 +33,5 @@ urlpatterns = [ url(r'^public-accounts$', history.public_accounts_process, name="public-history"), url(r'^pin/question$', captcha.pin_tan_question, name="pin_tan"), url(r'^pin/verify$', captcha.pin_tan_verify), - url(r'^admin/add/incoming$', funds.add_incoming, name="add-incoming"), - url(r'^history$', history.history_process) + url(r'^admin/add/incoming$', funds.add_incoming, name="add-incoming") ] |