gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: fix test


From: gnunet
Subject: [taler-bank] branch master updated: fix test
Date: Thu, 29 Oct 2020 14:55:58 +0100

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 e65dbf1  fix test
e65dbf1 is described below

commit e65dbf1532236e4a9780ac6b88724f41e810c587
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 29 14:55:55 2020 +0100

    fix test
---
 talerbank/app/middleware.py | 3 +--
 talerbank/app/tests.py      | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/talerbank/app/middleware.py b/talerbank/app/middleware.py
index 5c9d62c..dc1b83b 100644
--- a/talerbank/app/middleware.py
+++ b/talerbank/app/middleware.py
@@ -103,7 +103,7 @@ class ExceptionMiddleware:
             render_to = self.render.get(request.path)
             if not render_to:
                 response = JsonResponse(
-                    dict(code=exception.taler_error_code, 
error=exception.hint),
+                    dict(code=exception.taler_error_code.value, 
error=exception.hint),
                     status=exception.http_status_code,
                 )
                 response["Access-Control-Allow-Origin"] = "*"
@@ -116,4 +116,3 @@ class ExceptionMiddleware:
                      hint="unexpected exception",
                      exception=str(exception)),
                  status=HTTPStatus.INTERNAL_SERVER_ERROR)
-
diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index d42a9b5..bf6711b 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -399,7 +399,7 @@ class RegisterTestCase(TestCase):
             {"username": "test_register", "password": "test_register"},
             follow=True,
         )
-        self.assertIn(("/profile", 302), response.redirect_chain)
+        self.assertIn(("/en/profile", 302), response.redirect_chain)
         # this assertion tests "/profile""s view
         self.assertEqual(200, response.status_code)
 

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