e2e: Remove unnecessary output

This commit is contained in:
2022-06-23 19:16:27 +02:00
parent 09ce9f043e
commit d7ab3c4d6b

View File

@@ -107,8 +107,6 @@ def test_worktree_add_invalid_name():
args = ["wt", "add", worktree_name] args = ["wt", "add", worktree_name]
cmd = grm(args, cwd=base_dir) cmd = grm(args, cwd=base_dir)
assert cmd.returncode != 0 assert cmd.returncode != 0
print(cmd.stdout)
print(cmd.stderr)
assert not os.path.exists(worktree_name) assert not os.path.exists(worktree_name)
assert not os.path.exists(os.path.join(base_dir, worktree_name)) assert not os.path.exists(os.path.join(base_dir, worktree_name))
assert "invalid worktree name" in str(cmd.stderr.lower()) assert "invalid worktree name" in str(cmd.stderr.lower())
@@ -257,7 +255,6 @@ def test_worktree_delete():
cmd = grm(["wt", "add", "check"], cwd=base_dir) cmd = grm(["wt", "add", "check"], cwd=base_dir)
assert cmd.returncode == 0 assert cmd.returncode == 0
repo = git.Repo(os.path.join(base_dir, ".git-main-working-tree")) repo = git.Repo(os.path.join(base_dir, ".git-main-working-tree"))
print(repo.branches)
assert "test" not in [str(b) for b in repo.branches] assert "test" not in [str(b) for b in repo.branches]