Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address review comments
  • Loading branch information
SandrineP committed Jul 17, 2025
commit 3e8c3d086008a44e13fe3d6091f6f9726055a107
4 changes: 2 additions & 2 deletions test/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
def test_add(git2cpp_path, all_flag):
with open("./test/mook_file.txt", "x") as f:
pass
f.close()

with open("./test/mook_file_2.txt", "x") as f:
pass
f.close()

cmd_add = [git2cpp_path, 'add']
if all_flag != "":
Expand All @@ -33,4 +31,6 @@ def test_add(git2cpp_path, all_flag):

os.remove("./test/mook_file.txt")
os.remove("./test/mook_file_2.txt")

# undo the add, to leave the test directory at the end the same as it was at the start
subprocess.run(cmd_add, capture_output=True, text=True)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line just to undo the add, to leave the test directory at the end the same as it was at the start? If so can you add a comment saying this, otherwise it will look suspicious in future to have this line without any following assert.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's the reason why ! I'll write a comment.