File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff 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 ?
You can’t perform that action at this time.
0 commit comments