review/templates/pieces/forms/file-comment.html @ 9030dc9517cf
web: add basic tests
This patch adds a new test module `test_web` to automate testing of web
requests. For now the tests are rather simple and only check for
expected status codes.
To set up the flask app within the tests, it has to be configured
properly. This is the reason why the app configuration part in `web.py`
has been moved into an own function - now it may also be used by the
test module.
author |
Oben Sonne <obensonne@googlemail.com> |
date |
Mon, 02 Jul 2012 22:32:48 +0200 |
parents |
5dec221dd171 |
children |
(none) |
<div class="add-file-comment togglebox group">
<span class="activate"><a class="button" href=""><span>Add a comment on this file</span></a></span>
<form id="id_comment-file-form_{{ index }}" class="disabled" method="POST" action="">
<div class="field">
<label class="infield" for="id_comment-file-form_{{ index }}_body">Comment</label>
<textarea autocomplete="off" id="id_comment-file-form_{{ index }}_body" cols="60" rows="6" name="new-comment-body"></textarea>
</div>
<div class="field cuddly">
<input type="checkbox" class="checkbox" name="comment-markdown" id="id_comment-file-form_{{ index }}_markdown" checked="checked" />
<label for="id_comment-file-form_{{ index }}_markdown">Use Markdown to format this comment.</label>
</div>
<a class="submit button" href="#"><span>Post Comment</span></a>
<a class="cancel button" href="#"><span>Cancel</span></a>
<input type="hidden" name="filename-u" value="{{ ufilename }}" />
<input type="hidden" name="filename-b64" value="{{ utils['b64'](filename) }}" />
</form>
</div>