From 2eaeeb367028e9c7ce92fec76ce756a9f6212df8 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Wed, 15 May 2019 18:22:26 +0200 Subject: [PATCH] lingo: got back to regie list liew after edition cancel (#33050) --- combo/apps/lingo/templates/lingo/regie_form.html | 2 +- tests/test_lingo_manager.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/combo/apps/lingo/templates/lingo/regie_form.html b/combo/apps/lingo/templates/lingo/regie_form.html index 1788859e..5d4442b4 100644 --- a/combo/apps/lingo/templates/lingo/regie_form.html +++ b/combo/apps/lingo/templates/lingo/regie_form.html @@ -16,7 +16,7 @@ {{ form.as_p }}
- {% trans 'Cancel' %} + {% trans 'Cancel' %}
{% endblock %} diff --git a/tests/test_lingo_manager.py b/tests/test_lingo_manager.py index a66a1786..44c1f17e 100644 --- a/tests/test_lingo_manager.py +++ b/tests/test_lingo_manager.py @@ -42,6 +42,7 @@ def test_add_regie(app, admin_user, payment_backend): app = login(app) resp = app.get('/manage/lingo/regies/', status=200) resp = resp.click('New') + assert '/manage/lingo/regies/' in resp.text resp.forms[0]['label'] = 'Test' resp.forms[0]['slug'] = 'test' resp.forms[0]['description'] = 'description' @@ -59,6 +60,7 @@ def test_edit_regie(app, admin_user, payment_backend): app = login(app) resp = app.get('/manage/lingo/regies/', status=200) resp = resp.click('Test') + assert '/manage/lingo/regies/' in resp.text resp.forms[0]['description'] = 'other description' resp = resp.forms[0].submit() assert resp.location.endswith('/manage/lingo/regies/')