()
| 10 | |
| 11 | @pytest.fixture(scope='module') |
| 12 | def az(): |
| 13 | # build the repo first if not exists yet |
| 14 | repo_path = os.path.join(root_path, 'repos/test_feature_branch') |
| 15 | script_path = os.path.join(root_path, 'tools/repo_creater/create_repo.py') |
| 16 | test_src_path = os.path.join(root_path, 'test/test_feature_branch') |
| 17 | |
| 18 | # Always use latest source to create test repo |
| 19 | if os.path.exists(repo_path): |
| 20 | shutil.rmtree(repo_path) |
| 21 | |
| 22 | cmd = '{} {}'.format(script_path, test_src_path) |
| 23 | subprocess.call(cmd, shell=True) |
| 24 | |
| 25 | return Analyzer(repo_path, CGraphServer(C_FILENAME_REGEXES)) |
| 26 | |
| 27 | |
| 28 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected