MCPcopy Index your code
hub / github.com/Persper/code-analytics / az

Function az

test/test_graphs/test_analyzer_js.py:16–33  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

14
15@pytest.fixture(scope='module')
16def 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
36def assert_graph_match_history(az: Analyzer):

Callers

nothing calls this directly

Calls 2

AnalyzerClass · 0.90
GraphServerHttpClass · 0.90

Tested by

no test coverage detected