Пример #1
0
    def setUp(self):
        testutil.cleanup()
        testutil.init_repo('foo.git')

        git = Git(os.path.join(testutil.GIT_DIR, 'foo.git'))
        testutil.create_empty_branch(git.repo)
        self.git = git

        app = create_app(testutil.GIT_DIR)
        self.client = Client(app, BaseResponse)
Пример #2
0
    def setUp(self):
        testutil.cleanup()
        testutil.init_repo('foo.git')

        git = Git(os.path.join(testutil.GIT_DIR, 'foo.git'))
        self.assertEqual(git.branches(), {}, 'no branches yet')

        testutil.create_empty_branch(git.repo)

        self.git = Git(os.path.join(testutil.GIT_DIR, 'foo.git'))