Skip to content

Commit 9766996

Browse files
committed
add assert to checkout test
1 parent 3163699 commit 9766996

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_checkout.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ def test_checkout_b(xtl_clone, git2cpp_path, tmp_path, run_in_tmp_path):
4545
checkout_cmd[2] = 'master'
4646
p_checkout2 = subprocess.run(checkout_cmd, cwd=xtl_path, text=True)
4747
assert p_checkout2.returncode == 0
48+
49+
p_branch2 = subprocess.run(branch_cmd, capture_output=True, cwd=xtl_path, text=True)
50+
assert p_branch2.returncode == 0
51+
assert(p_branch2.stdout == ' foregone\n* master\n')

0 commit comments

Comments
 (0)