mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
(cherry picked from commit bcb3c215ddcccfad3311ed5163503175e54254a4) IJ-CR-166188 GitOrigin-RevId: 0a16d89676ee5f7d9f80688805bd4312d7f20ccd
35 lines
953 B
Kotlin
35 lines
953 B
Kotlin
@file:Suppress("TestFunctionName")
|
|
|
|
package com.intellij.mcpserver.toolsets
|
|
|
|
import com.intellij.mcpserver.McpToolsetTestBase
|
|
import com.intellij.mcpserver.toolsets.vcs.VcsToolset
|
|
import io.kotest.common.runBlocking
|
|
import kotlinx.serialization.json.JsonPrimitive
|
|
import kotlinx.serialization.json.buildJsonObject
|
|
import org.junit.jupiter.api.Disabled
|
|
import org.junit.jupiter.api.Test
|
|
|
|
class VcsToolsetTest : McpToolsetTestBase() {
|
|
@Disabled("Configure VCS in test project")
|
|
@Test
|
|
fun get_project_vcs_status() = runBlocking {
|
|
testMcpTool(
|
|
VcsToolset::get_project_vcs_status.name,
|
|
buildJsonObject {},
|
|
"[]"
|
|
)
|
|
}
|
|
|
|
@Disabled("Configure VCS in test project")
|
|
@Test
|
|
fun find_commit_by_message() = runBlocking {
|
|
testMcpTool(
|
|
VcsToolset::find_commit_by_message.name,
|
|
buildJsonObject {
|
|
put("text", JsonPrimitive("test commit"))
|
|
},
|
|
"Error: No VCS configured for this project"
|
|
)
|
|
}
|
|
} |