diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation.
In some cases when there are no longer any files this caused error since filediff wasn't present. In addition this generated wrong ids since it used a last-defined attribute on a for loop. Fixes #5567
This commit is contained in:
parent
8cd4048e19
commit
e9cf83badc
3 changed files with 7 additions and 5 deletions
|
|
@ -54,7 +54,7 @@ class TestGetRepoChangeset(object):
|
|||
details=details,
|
||||
)
|
||||
response = api_call(self.app, params)
|
||||
expected = 'commit_id must be a string value'
|
||||
expected = "commit_id must be a string value got <type 'int'> instead"
|
||||
assert_error(id_, expected, given=response.body)
|
||||
|
||||
@pytest.mark.parametrize("details", ['basic', 'extended', 'full'])
|
||||
|
|
@ -137,5 +137,5 @@ class TestGetRepoChangeset(object):
|
|||
details=details,
|
||||
)
|
||||
response = api_call(self.app, params)
|
||||
expected = 'commit_id must be a string value'
|
||||
expected = "commit_id must be a string value got <type 'int'> instead"
|
||||
assert_error(id_, expected, given=response.body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue