Build the test repo if not already exists Args: repo_path - A string, path to the to-be-built test repo script_path - A string, path to the repo creator script test_src_path - A string, path to the dir to be passed to repo creator
()
| 14 | |
| 15 | @pytest.fixture(scope='module') |
| 16 | def az(): |
| 17 | """ Build the test repo if not already exists |
| 18 | |
| 19 | Args: |
| 20 | repo_path - A string, path to the to-be-built test repo |
| 21 | script_path - A string, path to the repo creator script |
| 22 | test_src_path - A string, path to the dir to be passed to repo creator |
| 23 | """ |
| 24 | repo_path = os.path.join(root_path, 'repos/js_test_repo') |
| 25 | script_path = os.path.join(root_path, 'tools/repo_creater/create_repo.py') |
| 26 | test_src_path = os.path.join(root_path, 'test/js_test_repo') |
| 27 | server_addr = 'http://localhost:%d' % server_port |
| 28 | |
| 29 | if not os.path.isdir(repo_path): |
| 30 | cmd = '{} {}'.format(script_path, test_src_path) |
| 31 | subprocess.call(cmd, shell=True) |
| 32 | |
| 33 | return Analyzer(repo_path, GraphServerHttp(server_addr, JS_FILENAME_REGEXES)) |
| 34 | |
| 35 | |
| 36 | def assert_graph_match_history(az: Analyzer): |
nothing calls this directly
no test coverage detected