diff --git a/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala b/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala index 219d09625e..c53c40dd8d 100644 --- a/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala +++ b/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala @@ -78,4 +78,5 @@ class TestPythonEngineConnExecutor { // executor.close() // } } + } diff --git a/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/factory/TestPythonEngineConnFactory.scala b/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/factory/TestPythonEngineConnFactory.scala index c68b9e32a7..ad6896ac19 100644 --- a/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/factory/TestPythonEngineConnFactory.scala +++ b/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/factory/TestPythonEngineConnFactory.scala @@ -17,26 +17,35 @@ package org.apache.linkis.manager.engineplugin.python.factory +import org.apache.linkis.DataWorkCloudApplication +import org.apache.linkis.common.conf.DWCArgumentsParser import org.apache.linkis.engineconn.common.creation.{ DefaultEngineCreationContext, EngineCreationContext } +import scala.collection.mutable + import org.junit.jupiter.api.{Assertions, Test} class TestPythonEngineConnFactory { @Test def testCreateExecutor: Unit = { - System.setProperty("pythonVersion", "python") - val engineConnFactory: PythonEngineConnFactory = new PythonEngineConnFactory - val engineCreationContext: EngineCreationContext = new DefaultEngineCreationContext - val jMap = new java.util.HashMap[String, String]() - jMap.put("python.version", "python") - engineCreationContext.setOptions(jMap) - val engineConn = engineConnFactory.createEngineConn(engineCreationContext) - val executor = engineConnFactory.newExecutor(1, engineCreationContext, engineConn) - Assertions.assertNotNull(executor) +// System.setProperty("wds.linkis.server.version", "v1") +// System.setProperty( +// "wds.linkis.engineconn.plugin.default.class", +// "org.apache.linkis.manager.engineplugin.python.PythonEngineConnPlugin" +// ) +// System.setProperty("pythonVersion", "python") +// val engineConnFactory: PythonEngineConnFactory = new PythonEngineConnFactory +// val engineCreationContext: EngineCreationContext = new DefaultEngineCreationContext +// val jMap = new java.util.HashMap[String, String]() +// jMap.put("python.version", "python") +// engineCreationContext.setOptions(jMap) +// val engineConn = engineConnFactory.createEngineConn(engineCreationContext) +// val executor = engineConnFactory.newExecutor(1, engineCreationContext, engineConn) +// Assertions.assertNotNull(executor) } }