Files @ 29d0ed59e674
Branch filter:

Location: kallithea/kallithea/tests/functional/test_followers.py

Thomas De Schampheleire
tests: remove hardcoded test_admin username
from kallithea.tests import *


class TestFollowersController(TestController):

    def test_index_hg(self):
        self.log_user()
        repo_name = HG_REPO
        response = self.app.get(url(controller='followers',
                                    action='followers',
                                    repo_name=repo_name))

        response.mustcontain(TEST_USER_ADMIN_LOGIN)
        response.mustcontain("""Started following""")

    def test_index_git(self):
        self.log_user()
        repo_name = GIT_REPO
        response = self.app.get(url(controller='followers',
                                    action='followers',
                                    repo_name=repo_name))

        response.mustcontain(TEST_USER_ADMIN_LOGIN)
        response.mustcontain("""Started following""")