Skip to content

Commit 6e95ecf

Browse files
committed
Fix imports
1 parent eb93641 commit 6e95ecf

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ import org.utbot.framework.codegen.CodeGeneratorResult
55
import org.utbot.framework.codegen.domain.ForceStaticMocking
66
import org.utbot.framework.codegen.domain.HangingTestsTimeout
77
import org.utbot.framework.codegen.domain.ParametrizedTestSource
8-
import org.utbot.framework.codegen.PythonImport
98
import org.utbot.framework.codegen.domain.RuntimeExceptionTestsBehaviour
109
import org.utbot.framework.codegen.domain.StaticsMocking
1110
import org.utbot.framework.codegen.domain.TestFramework
11+
import org.utbot.framework.codegen.domain.context.CgContext
12+
import org.utbot.framework.codegen.domain.models.CgLiteral
1213
import org.utbot.framework.codegen.domain.models.CgMethodTestSet
14+
import org.utbot.framework.codegen.domain.models.CgVariable
15+
import org.utbot.framework.codegen.domain.models.CgAssignment
1316
import org.utbot.framework.codegen.domain.models.TestClassModel
14-
import org.utbot.framework.codegen.domain.context.CgContext
1517
import org.utbot.framework.codegen.renderer.CgAbstractRenderer
18+
import org.utbot.framework.codegen.renderer.CgPrinterImpl
19+
import org.utbot.framework.codegen.renderer.CgRendererContext
1620
import org.utbot.python.PythonMethod
1721
import org.utbot.python.code.AnnotationProcessor.getModulesFromAnnotation
1822
import org.utbot.python.framework.api.python.NormalizedPythonAnnotation
@@ -23,6 +27,7 @@ import org.utbot.python.framework.api.python.util.pythonStrClassId
2327
import org.utbot.framework.plugin.api.ClassId
2428
import org.utbot.framework.plugin.api.ExecutableId
2529
import org.utbot.framework.plugin.api.MockFramework
30+
import org.utbot.framework.plugin.api.UtModel
2631
import org.utbot.python.framework.codegen.PythonCgLanguageAssistant
2732
import org.utbot.python.framework.codegen.model.constructor.tree.PythonCgTestClassConstructor
2833
import org.utbot.python.framework.codegen.model.constructor.visitor.CgPythonRenderer

utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonImports.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.utbot.python.framework.codegen.model
22

3-
import org.utbot.framework.codegen.Import
4-
53
import org.utbot.framework.codegen.domain.Import
64

75
sealed class PythonImport(order: Int) : Import(order) {

utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/constructor/util/ConstructorUtils.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ package org.utbot.python.framework.codegen.model.constructor.util
22

33
import kotlinx.collections.immutable.PersistentList
44
import kotlinx.collections.immutable.PersistentSet
5-
import org.utbot.framework.codegen.PythonImport
6-
import org.utbot.framework.codegen.PythonSysPathImport
75
import org.utbot.framework.codegen.domain.context.CgContextOwner
86
import org.utbot.python.framework.api.python.PythonClassId
97
import org.utbot.python.framework.api.python.PythonMethodId
8+
import org.utbot.python.framework.codegen.model.PythonUserImport
109

1110
internal fun CgContextOwner.importIfNeeded(method: PythonMethodId) {
1211
collectedImports += PythonUserImport(method.moduleName)

0 commit comments

Comments
 (0)