We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 893eec9 commit 3e8c3d0Copy full SHA for 3e8c3d0
test/test_add.py
@@ -8,11 +8,9 @@
8
def test_add(git2cpp_path, all_flag):
9
with open("./test/mook_file.txt", "x") as f:
10
pass
11
- f.close()
12
13
with open("./test/mook_file_2.txt", "x") as f:
14
15
16
17
cmd_add = [git2cpp_path, 'add']
18
if all_flag != "":
@@ -33,4 +31,6 @@ def test_add(git2cpp_path, all_flag):
33
31
34
32
os.remove("./test/mook_file.txt")
35
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
36
subprocess.run(cmd_add, capture_output=True, text=True)
0 commit comments