Ability to set which text to process triggers on (added, removed, changed) according to the difference (#1483)

This commit is contained in:
dgtlmoon
2023-03-20 20:16:57 +01:00
committed by GitHub
parent 66b892f770
commit 55b6ae86e8
14 changed files with 277 additions and 41 deletions

View File

@@ -19,8 +19,12 @@ class TestDiffBuilder(unittest.TestCase):
with open(base_dir + "/test-content/after.txt", 'r') as f:
newest_version_file_contents = f.read()
output = diff.render_diff(previous_version_file_contents, newest_version_file_contents)
output = diff.render_diff(previous_version_file_contents=previous_version_file_contents,
newest_version_file_contents=newest_version_file_contents)
output = output.split("\n")
self.assertIn('(changed) ok', output)
self.assertIn('(into) xok', output)
self.assertIn('(into) next-x-ok', output)