view kallithea/tests/functional/test_followers.py @ 8687:5e46f73f0d1c

model: always import the whole db module - drop "from" imports
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 12 Oct 2020 11:12:37 +0200
parents e527cc2ce8dc
children
line wrap: on
line source

from kallithea.tests import base


class TestFollowersController(base.TestController):

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

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

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

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