Skip to content

Commit

Permalink
test_generate_patches.py: Fix test after annotation output schema cha…
Browse files Browse the repository at this point in the history
…nged

The test in question use annotate_single_diff(), ad the output format
(output schema) changed - information about changes themself is now
under the 'changes' key, one level deeper.
  • Loading branch information
jnareb committed Oct 28, 2024
1 parent 898b6cf commit 884e76e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_generate_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def test_format_patch(tmp_path: Path):
# try to parse this patch file
file_path = patches_paths[0]
patch = annotate_single_diff(file_path)
patch = patch['changes']
changed_file_name = 'pom.xml'
assert len(patch) == 1, \
"there is only one file in patch"
Expand Down

0 comments on commit 884e76e

Please sign in to comment.