Skip to content

Commit ccb3077

Browse files
committed
update test
1 parent ed4fe0e commit ccb3077

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

test/test_add.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ def test_add(git2cpp_path, all_flag):
2424
cmd_status = [git2cpp_path, 'status', "--long"]
2525
p_status = subprocess.run(cmd_status, capture_output=True, text=True)
2626

27-
print(p_status.stdout)
28-
# assert "Changes to be committed" in p.stdout
29-
# assert "Changes not staged for commit" in p.stdout
30-
# assert "Untracked files" in p.stdout
31-
# assert "new file" in p.stdout
32-
# assert "deleted" in p.stdout
33-
# assert "modified" in p.stdout
34-
#
27+
assert "Changes to be committed" in p_status.stdout
28+
assert "new file" in p_status.stdout
29+
if all_flag != "":
30+
assert "Untracked files" not in p_status.stdout
31+
else:
32+
assert "Untracked files" in p_status.stdout
33+
3534
os.remove("./test/mook_file.txt")
3635
os.remove("./test/mook_file_2.txt")
37-
subprocess.run(cmd_add, capture_output=True, text=True)
36+
subprocess.run(cmd_add, capture_output=True, text=True) # TODO: replace with a reset when implemented ?

0 commit comments

Comments
 (0)