コード例 #1
0
ファイル: test_git.py プロジェクト: CodeWarltz/commons
def test_branch_throw(tmpdir, repo):
  with pytest.raises(ValueError):
    with branch('a', repo=repo):
      raise ValueError
コード例 #2
0
ファイル: test_git.py プロジェクト: ycaihua/twitter-commons
def test_branch_throw(tmpdir, repo):
    with pytest.raises(ValueError):
        with branch('a', repo=repo):
            raise ValueError
コード例 #3
0
ファイル: test_git.py プロジェクト: CodeWarltz/commons
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
コード例 #4
0
ファイル: test_git.py プロジェクト: ycaihua/twitter-commons
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