[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-backoffice] 02/03: testing the javascript license pa
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-backoffice] 02/03: testing the javascript license page |
Date: |
Tue, 09 Jan 2018 13:25:18 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository backoffice.
commit 6f9e0614ad7db28e2c798d065fda3cd2318bd08e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jan 9 13:19:21 2018 +0100
testing the javascript license page
---
talerbackoffice/backoffice/backoffice.py | 6 ------
talerbackoffice/tests.py | 6 ++++++
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/talerbackoffice/backoffice/backoffice.py
b/talerbackoffice/backoffice/backoffice.py
index b7d0e16..646dc64 100644
--- a/talerbackoffice/backoffice/backoffice.py
+++ b/talerbackoffice/backoffice/backoffice.py
@@ -74,12 +74,6 @@ def history():
return flask.jsonify(resp.json()), resp.status_code
address@hidden("/backoffice")
-def track():
- response =
flask.make_response(flask.render_template("templates/backoffice.html"))
- return response
-
-
@app.route("/track/transfer")
def track_transfer():
qs = get_query_string().decode("utf-8")
diff --git a/talerbackoffice/tests.py b/talerbackoffice/tests.py
index 20aeece..cd6a042 100644
--- a/talerbackoffice/tests.py
+++ b/talerbackoffice/tests.py
@@ -33,5 +33,11 @@ class BackofficeTestCase(unittest.TestCase):
mocked_get.assert_called_with(
"http://backend.example.com/history",
params=dict(para1='1', para2='2'))
+
+ def test_javascript_license_page(self):
+ response = self.app.get("/javascript")
+ soup = BeautifulSoup(response.data, "html.parser")
+ self.assertEqual(soup.body.table["id"], "jslicense-labels1")
+
if __name__ == "__main__":
unittest.main()
--
To stop receiving notification emails like this one, please contact
address@hidden