diffs: introducing diff menu for whitespace toggle and context changes

This commit is contained in:
Daniel Dourvaris 2018-10-23 17:02:26 +02:00
parent 175a9b344e
commit 94d74336d1
11 changed files with 141 additions and 206 deletions

View file

@ -373,7 +373,8 @@ class TestPullRequestModel(object):
source_ref_id = pull_request.source_ref_parts.commit_id
target_ref_id = pull_request.target_ref_parts.commit_id
diff = PullRequestModel()._get_diff_from_pr_or_version(
source_repo, source_ref_id, target_ref_id, context=6)
source_repo, source_ref_id, target_ref_id,
hide_whitespace_changes=False, diff_context=6)
assert 'file_1' in diff.raw
def test_generate_title_returns_unicode(self):