fixed test

This commit is contained in:
Paul Gauthier 2023-06-21 21:33:51 -07:00
parent e26acbae65
commit 4b69e2b85c
5 changed files with 18 additions and 11 deletions

View file

@ -54,9 +54,10 @@ class WholeFileCoder(Coder):
).splitlines()
output += show_diff
else:
new_lines = "".join(new_lines)
Path(full_path).write_text(new_lines)
edited.add(fname)
if not self.dry_run:
new_lines = "".join(new_lines)
Path(full_path).write_text(new_lines)
fname = None
new_lines = []