From ae9f42ef8ad84de03b363de101c22d30b6347264 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 3 Aug 2023 14:43:42 -0300 Subject: [PATCH] test from main entrypt --- tests/test_editblock.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_editblock.py b/tests/test_editblock.py index de6d36429..9a973c88b 100644 --- a/tests/test_editblock.py +++ b/tests/test_editblock.py @@ -232,7 +232,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output line4 """ - result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace) + result = eb.replace_most_similar_chunk(whole, part, replace) self.assertEqual(result, expected_output) def test_replace_part_with_missing_leading_whitespace(self): @@ -241,7 +241,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output replace = "new_line1\nnew_line2" expected_output = " new_line1\n new_line2\n line3\n" - result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace) + result = eb.replace_most_similar_chunk(whole, part, replace) self.assertEqual(result, expected_output) def test_replace_part_with_just_some_missing_leading_whitespace(self): @@ -250,7 +250,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output replace = "new_line1\nnew_line2" expected_output = " new_line1\n new_line2\n line3\n" - result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace) + result = eb.replace_most_similar_chunk(whole, part, replace) self.assertEqual(result, expected_output) def test_replace_part_with_missing_leading_whitespace_including_blank_lines(self): @@ -264,7 +264,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output replace = "new_line1\nnew_line2" expected_output = None - result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace) + result = eb.replace_most_similar_chunk(whole, part, replace) self.assertEqual(result, expected_output) def test_full_edit(self):