def test_git(self): cover = Coveralls(repo_token='xxx') git_info = cover.git_info() commit_id = git_info['git']['head'].pop('id') assert re.match(r'^[a-f0-9]{40}$', commit_id) assert git_info == {'git': { 'head': { 'committer_email': '*****@*****.**', 'author_email': '*****@*****.**', 'author_name': 'Daniël', 'message': 'first commit', 'committer_name': 'Daniël', }, 'remotes': [{ 'url': 'https://github.com/username/Hello-World.git', 'name': 'origin' }], 'branch': 'master' }}
def test_git(self): cover = Coveralls(repo_token='xxx') git_info = cover.git_info() commit_id = git_info['git']['head'].pop('id') self.assertTrue(re.match(r'^[a-f0-9]{40}$', commit_id)) # expect(commit_id).should.match(r'^[a-f0-9]{40}$', re.I | re.U) sure 1.1.7 is broken for py2.6 expect(git_info).should.be.equal({'git': { 'head': { 'committer_email': '*****@*****.**', 'author_email': '*****@*****.**', 'author_name': 'Guido', 'message': 'first commit', 'committer_name': 'Guido', }, 'remotes': [{ 'url': u'https://github.com/username/Hello-World.git', 'name': u'origin' }], 'branch': u'master'}})
def test_git(self): cover = Coveralls(repo_token='xxx') git_info = cover.git_info() commit_id = git_info['git']['head'].pop('id') assert re.match(r'^[a-f0-9]{40}$', commit_id) assert git_info == { 'git': { 'head': { 'committer_email': GIT_EMAIL, 'author_email': GIT_EMAIL, 'author_name': GIT_NAME, 'message': GIT_COMMIT_MSG, 'committer_name': GIT_NAME, }, 'remotes': [{ 'url': GIT_URL, 'name': GIT_REMOTE }], 'branch': 'master' } }
def test_git(self): cover = Coveralls(repo_token='xxx') git_info = cover.git_info() commit_id = git_info['git']['head'].pop('id') self.assertTrue(re.match(r'^[a-f0-9]{40}$', commit_id)) # expect(commit_id).should.match(r'^[a-f0-9]{40}$', re.I | re.U) sure 1.1.7 is broken for py2.6 expect(git_info).should.be.equal({ 'git': { 'head': { 'committer_email': '*****@*****.**', 'author_email': '*****@*****.**', 'author_name': 'Guido', 'message': 'first commit', 'committer_name': 'Guido', }, 'remotes': [{ 'url': u'https://github.com/username/Hello-World.git', 'name': u'origin' }], 'branch': u'master' } })