4
4
import createEmbeddings
5
5
from userInput import processUserInput
6
6
7
- # Run the main function from getFunctionData
8
- # pass this variable if you want to run another repo than testRepo:
9
- # repo_path='../inputData/elixirsolutions'
10
- getFunctionData .get_function_data ()
7
+ def main (repo_path = '../inputData/testRepo' ):
8
+ # Run the main function from getFunctionData
9
+ getFunctionData .get_function_data (repo_path )
11
10
12
- # Run the main function from createEmbeddings
13
- createEmbeddings .embed_sample_functions ()
11
+ # Run the main function from createEmbeddings
12
+ createEmbeddings .embed_sample_functions (repo_path )
14
13
15
- # Run the main function from processUserInput
16
- processUserInput .process_user_input ()
14
+ # Run the main function from processUserInput
15
+ processUserInput .process_user_input ()
17
16
18
- # Create a test suite
19
- suite = unittest .TestLoader ().loadTestsFromModule (test_get_function_data )
17
+ # Create a test suite
18
+ suite = unittest .TestLoader ().loadTestsFromModule (test_get_function_data )
20
19
21
- # Run the tests with CustomTestRunner
22
- test_get_function_data .CustomTestRunner ().run (suite )
20
+ # Run the tests with CustomTestRunner
21
+ test_get_function_data .CustomTestRunner ().run (suite )
22
+
23
+ if __name__ == '__main__' :
24
+ # pass this variable if you want to run another repo than testRepo:
25
+ # repo_path='../inputData/elixirsolutions'
26
+ main ()
0 commit comments