tests: fixes #4168 removing git xfails in pr and vcs commit tests

This commit is contained in:
lisaq 2016-08-17 17:58:11 +02:00
parent b07694de35
commit ea4cb9d4ae
2 changed files with 5 additions and 4 deletions

View file

@ -64,8 +64,6 @@ class TestPullrequestsController:
assert response.status == '302 Found'
assert redirect_url in response.location
@pytest.mark.xfail_backends(
"git", reason="Pending bugfix/feature, issue #6")
def test_create_pr_form_with_raw_commit_id(self, backend):
repo = backend.repo

View file

@ -325,9 +325,12 @@ class TestCommits(BackendTestMixin):
assert line_no == 1
assert commit_id == file_added_commit.raw_id
assert commit_loader() == file_added_commit
# git annotation is generated differently thus different results
if self.repo.alias == 'git':
pytest.xfail("TODO: Git returns wrong value in line")
assert line == 'Foobar 3'
assert line == '(Joe Doe 2010-01-03 08:00:00 +0000 1) Foobar 3'
else:
assert line == 'Foobar 3'
def test_get_file_annotate_does_not_exist(self):
file_added_commit = self.repo.get_commit(commit_idx=2)