Beispiel #1
0
def test_branch_throw(tmpdir, repo):
  with pytest.raises(ValueError):
    with branch('a', repo=repo):
      raise ValueError
Beispiel #2
0
def test_branch_throw(tmpdir, repo):
    with pytest.raises(ValueError):
        with branch('a', repo=repo):
            raise ValueError
Beispiel #3
0
def test_branch(tmpdir, repo):
  with branch('a', repo=repo):
    with pushd(tmpdir.strpath):
      with open('test') as f:
        assert f.read() == first_commit_file_content
Beispiel #4
0
def test_branch(tmpdir, repo):
    with branch('a', repo=repo):
        with pushd(tmpdir.strpath):
            with open('test') as f:
                assert f.read() == first_commit_file_content