def test_integration(temp_git_dir): with temp_git_dir.as_cwd(): assert main(argv=[]) == 0 temp_git_dir.join('f.py').write("print('hello world')") cmd_output('git', 'add', 'f.py') assert main(argv=['f.py']) == 0 temp_git_dir.join('F.py').write("print('hello world')") cmd_output('git', 'add', 'F.py') assert main(argv=['F.py']) == 1
def test_integration(temp_git_dir): with local.cwd(temp_git_dir): assert main(argv=[]) == 0 write_file('f.py', "print('hello world')") local['git']('add', 'f.py') assert main(argv=['f.py']) == 0 write_file('F.py', "print('hello world')") local['git']('add', 'F.py') assert main(argv=['F.py']) == 1
def test_integration(temp_git_dir): with cwd(temp_git_dir): assert main(argv=[]) == 0 write_file('f.py', "print('hello world')") cmd_output('git', 'add', 'f.py') assert main(argv=['f.py']) == 0 write_file('F.py', "print('hello world')") cmd_output('git', 'add', 'F.py') assert main(argv=['F.py']) == 1