Source code for tests.processor.test_vcs
from bugscpp.command import CheckoutCommand
[docs]def test_checkout_fixed(tmp_path, gitenv):
checkout = CheckoutCommand()
project = "yara"
number = "1"
# Run twice
checkout(f"{project} {number} --target {str(tmp_path)}".split())
checkout(f"{project} {number} --target {str(tmp_path)}".split())
[docs]def test_checkout_buggy(tmp_path, gitenv):
checkout = CheckoutCommand()
project = "yara"
number = "1"
# Run twice
checkout(f"{project} {number} --buggy --target {str(tmp_path)}".split())
checkout(f"{project} {number} --buggy --target {str(tmp_path)}".split())