@@ -16,22 +16,22 @@ describe("Python transform into executable", () => {
1616} )
1717
1818
19- describe ( "Python code excution test" , ( ) => {
20- const worker = new JobWorker ( ) ;
19+ // describe("Python code excution test", () => {
20+ // const worker = new JobWorker();
2121
22- it ( 'should calculate a frequency in string' , ( ) => {
23- fs . readFile ( `${ __dirname } /../test-code/python/counter.py` , 'utf8' , ( _ , code ) => {
24- const codeContext : CodeContext = {
25- code : code ,
26- functionName : "calculate"
27- }
28- worker
29- . startContainer ( "python3" , codeContext )
30- . then ( ( response : ExecuteContainer ) => {
31- expect ( response . codeOutput ) . toBe ( "Counter({'a': 2, 's': 2, 'w': 2, 'e': 2, 'l': 1, 'd': 1, 'k': 1})" )
32- worker . removeContainer ( response . containerID ! ) ;
33- } )
34- . catch ( _ => { } ) ;
35- } ) ;
36- } )
37- } )
22+ // it('should calculate a frequency in string', () => {
23+ // fs.readFile(`${__dirname}/../test-code/python/counter.py`, 'utf8', (_, code) => {
24+ // const codeContext: CodeContext = {
25+ // code: code,
26+ // functionName: "calculate"
27+ // }
28+ // worker
29+ // .startContainer("python3", codeContext)
30+ // .then((response: ExecuteContainer) => {
31+ // expect(response.codeOutput).toBe("Counter({'a': 2, 's': 2, 'w': 2, 'e': 2, 'l': 1, 'd': 1, 'k': 1})")
32+ // worker.removeContainer(response.containerID!);
33+ // })
34+ // .catch(_ => {});
35+ // });
36+ // })
37+ // })
0 commit comments