[PATCH 7 of 7] tests: remove hardcoded reference to GIT_REPO

Thomas De Schampheleire patrickdepinguin at gmail.com
Sat Jun 20 16:38:00 EDT 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1434831005 -7200
#      Sat Jun 20 22:10:05 2015 +0200
# Node ID 153ef33bf4ee2d0067825618e1c0f53f37b3d071
# Parent  63ba8bff3323c303944c1fef9cf57eecd49890fa
tests: remove hardcoded reference to GIT_REPO

diff --git a/kallithea/tests/functional/test_admin_repos.py b/kallithea/tests/functional/test_admin_repos.py
--- a/kallithea/tests/functional/test_admin_repos.py
+++ b/kallithea/tests/functional/test_admin_repos.py
@@ -525,7 +525,7 @@ class _BaseTest(object):
         self.log_user()
         repo = Repository.get_by_repo_name(self.REPO)
         response = self.app.get(url('edit_repo_advanced', repo_name=self.REPO))
-        opt = """<option value="%s">vcs_test_git</option>""" % repo.repo_id
+        opt = """<option value="%s">%s</option>""" % (repo.repo_id, self.REPO)
         response.mustcontain(no=[opt])
 
     def test_set_fork_of_other_repo(self):


More information about the kallithea-general mailing list