0001-lingo-got-back-to-regie-list-liew-after-edition-canc.patch
combo/apps/lingo/templates/lingo/regie_form.html | ||
---|---|---|
16 | 16 |
{{ form.as_p }} |
17 | 17 |
<div class="buttons"> |
18 | 18 |
<button class="submit-button">{% trans "Save" %}</button> |
19 |
<a class="cancel" href="{% url 'lingo-manager-homepage' %}">{% trans 'Cancel' %}</a>
|
|
19 |
<a class="cancel" href="{% url 'lingo-manager-regie-list' %}">{% trans 'Cancel' %}</a>
|
|
20 | 20 |
</div> |
21 | 21 |
</form> |
22 | 22 |
{% endblock %} |
tests/test_lingo_manager.py | ||
---|---|---|
42 | 42 |
app = login(app) |
43 | 43 |
resp = app.get('/manage/lingo/regies/', status=200) |
44 | 44 |
resp = resp.click('New') |
45 |
assert '/manage/lingo/regies/' in resp.text |
|
45 | 46 |
resp.forms[0]['label'] = 'Test' |
46 | 47 |
resp.forms[0]['slug'] = 'test' |
47 | 48 |
resp.forms[0]['description'] = 'description' |
... | ... | |
59 | 60 |
app = login(app) |
60 | 61 |
resp = app.get('/manage/lingo/regies/', status=200) |
61 | 62 |
resp = resp.click('Test') |
63 |
assert '/manage/lingo/regies/' in resp.text |
|
62 | 64 |
resp.forms[0]['description'] = 'other description' |
63 | 65 |
resp = resp.forms[0].submit() |
64 | 66 |
assert resp.location.endswith('/manage/lingo/regies/') |
65 |
- |