# HG changeset patch # User Søren Løvborg # Date 2017-02-10 20:30:44 # Node ID 481f64dbe85c7d4e20db7e58d505e08444e0f65d # Parent c592865cea8d3c58b04779e59a1fca2dc25715e6 tests: tighten TestHomeController matching/description 'git' does not actually appear in JS, so move it above the comment saying so. For the rest, tighten the checks to actually ensure they match JS, and not e.g. the same text in plain HTML elsewhere on the page. diff --git a/kallithea/tests/functional/test_home.py b/kallithea/tests/functional/test_home.py --- a/kallithea/tests/functional/test_home.py +++ b/kallithea/tests/functional/test_home.py @@ -16,18 +16,20 @@ class TestHomeController(TestController) response = self.app.get(url(controller='home', action='index')) #if global permission is set response.mustcontain('Add Repository') + + response.mustcontain('git') + # html in javascript variable: response.mustcontain('var data = {"totalRecords": %s' % Repository.query().count()) response.mustcontain(r'href=\"/%s\"' % HG_REPO) - response.mustcontain(r'git') response.mustcontain(r'