Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't write file when applying a patch during update #2017

Merged
merged 10 commits into from
Nov 14, 2022
Prev Previous commit
Next Next commit
Update tests/modules/update.py
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
  • Loading branch information
mirpedrol and mashehu authored Nov 11, 2022
commit 586883fbfb1ed924e8279dbff5cd2c174a6b9bfc
1 change: 1 addition & 0 deletions tests/modules/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ def test_update_only_show_differences_when_patch(self, mock_prompt):
for line_index in range(len(lines)):
if lines[line_index] == " label 'process_medium'\n":
lines[line_index] = " label 'process_low'\n"
break
with open(main_path, "w") as fh:
fh.writelines(lines)
# Create a patch file
Expand Down