review/templates/base.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 |
3fe8d9b6705b |
children |
(none) |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>{% block title %}{% endblock %}Reviewing {{ title }} with hg-review</title>
<link rel="stylesheet" href="/static/styles/aal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/static/scripts/colorbox/colorbox.css" type="text/css" media="screen" />
<link rel="stylesheet/less" href="/static/styles/style.less" type="text/css" media="screen" />
<link rel="stylesheet" href="/static/styles/extra.css" type="text/css" media="screen" />
<script src="/static/scripts/less.js" type="text/javascript"></script>
<script type="text/javascript" src="/static/scripts/jquery.js"></script>
<script type="text/javascript" src="/static/scripts/jquery.infieldlabels.js"></script>
<script type="text/javascript" src="/static/scripts/underscore.js"></script>
<script type="text/javascript" src="/static/scripts/colorbox/jquery.colorbox.js"></script>
<script type="text/javascript" src="/static/scripts/ui.js"></script>
<script type="text/javascript" src="/static/scripts/comments.js"></script>
</head>
<body id="{% block id %}{% endblock %}">
<div class="hr one"> </div>
<div class="hr two"> </div>
<div class="header group">
<div class="wrap">
<h1>
Reviewing
<a href="/">{{ title }}</a>
</h1>
<div class="remotes">
{% if not read_only %}
<div class="push remote">
{% for name, path in datastore.repo.ui.configitems("paths") %}
<form action="/push/" method="POST" id="remote-push-{{ name }}">
<input type="hidden" name="path" value="{{ name }}" />
<a class="button submit" href="#"><span>push to {{ name }}</span></a>
</form>
{% endfor %}
</div>
<div class="pull remote">
{% for name, path in datastore.repo.ui.configitems("paths") %}
<form action="/pull/" method="post">
<input type="hidden" name="path" value="{{ name }}" />
<a class="button submit" href="#"><span>pull from {{ name }}</span></a>
</form>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
<div class="content">
{% block navigation %}
<div class="navigation"> </div>
{% endblock %}
<div class="wrap">
{% block content %}{% endblock %}
</div>
</div>
<div class="footer">
<div class="wrap">
<p>
reviewing
{% if project_url %}
<a href="{{ project_url }}">{{ title }}</a>
{% else %}
{{ title }}
{% endif %}
with <a href="http://bitbucket.org/sjl/hg-review/">hg-review</a>
</p>
</div>
</div>
</body>
</html>