()
| 9 | |
| 10 | @pytest.fixture(scope='module') |
| 11 | def g(): |
| 12 | # build the repo first if not exists yet |
| 13 | repo_path = os.path.join(root_path, 'repos/test_feature_branch') |
| 14 | script_path = os.path.join(root_path, 'tools/repo_creater/create_repo.py') |
| 15 | test_src_path = os.path.join(root_path, 'test/test_feature_branch') |
| 16 | if not os.path.isdir(repo_path): |
| 17 | cmd = '{} {}'.format(script_path, test_src_path) |
| 18 | subprocess.call(cmd, shell=True) |
| 19 | |
| 20 | g = CallCommitGraph(repo_path) |
| 21 | g.process(from_beginning=True, verbose=True, into_branches=True) |
| 22 | return g |
| 23 | |
| 24 | |
| 25 | def test_callcommitgraph(g): |
nothing calls this directly
no test coverage detected