Download:
child 171:dd72c5809c96
parent 169:216b7662fea9
170:ed9d9ccb3b4c
Anton Shestakov <av6@dwimlabs.net>, Thu, 21 Jul 2016 23:33:53 +0800
tests: check that branch name is a link (via fallback HostingAdapter)

1 файлов изменено, 3 вставок(+), 0 удалений(-) [+]
tests/test_viewer.py file | annotate | diff | comparison | revisions
--- a/tests/test_viewer.py Thu Jul 21 01:09:19 2016 +0800
+++ b/tests/test_viewer.py Thu Jul 21 23:33:53 2016 +0800
@@ -57,6 +57,7 @@
assert 'online linter' in response.body
assert '1 error' in response.body
assert '1 warning' in response.body
+ assert '<a href="#">default</a>' in response.body
def test_404(self):
response = self.fetch('/nobodyhere')
@@ -75,6 +76,7 @@
assert '.. image:: http' in response.body
assert '1 error' in response.body
assert '1 warning' in response.body
+ assert '<a href="#">default</a>' in response.body
def test_check(self):
response = self.fetch('/butt.cloud/cyber/wizard-attack/latest')
@@ -85,6 +87,7 @@
assert response.code == 200
assert '1 error' in response.body
assert '1 warning' in response.body
+ assert '<a href="#">default</a>' in response.body
response = self.fetch('/example.com/alice/test-viewer/latest/raw')
assert response.code == 200