PY-79488 Reformat PyUvOpenIntegrationTest.kt

GitOrigin-RevId: a8aaccdc529f2f3853426293819f96eea94a4f7f
This commit is contained in:
Mikhail Golubev
2025-05-12 15:50:13 +00:00
committed by intellij-monorepo-bot
parent 127f765358
commit 8cc9b6ed97
@@ -25,7 +25,7 @@ class PyUvOpenIntegrationTest {
@Test
fun `project with top-level uv-lock is automatically linked`() = timeoutRunBlocking(timeout = 20.seconds) {
val projectPath = testRoot.resolve("project")
projectPath.createFile("uv.lock").writeText("""
# This file is automatically generated by uv.
""".trimIndent())
@@ -37,15 +37,14 @@ class PyUvOpenIntegrationTest {
multiprojectFixture.openProject(projectPath).useProjectAsync {
ModuleAssertions.assertModules(it, "project")
CollectionAssertions.assertEqualsUnordered(listOf(projectPath),
it.service<UvSettings>().getLinkedProjects())
CollectionAssertions.assertEqualsUnordered(listOf(projectPath), it.service<UvSettings>().getLinkedProjects())
}
}
@Test
fun `project with top-level pyproject-toml containing uv-tool table is automatically linked`() = timeoutRunBlocking(timeout = 20.seconds) {
val projectPath = testRoot.resolve("project")
projectPath.createFile("pyproject.toml").writeText("""
[project]
name = "project"
@@ -56,15 +55,14 @@ class PyUvOpenIntegrationTest {
multiprojectFixture.openProject(projectPath).useProjectAsync { project ->
ModuleAssertions.assertModules(project, "project")
CollectionAssertions.assertEqualsUnordered(listOf(projectPath),
project.service<UvSettings>().getLinkedProjects())
CollectionAssertions.assertEqualsUnordered(listOf(projectPath), project.service<UvSettings>().getLinkedProjects())
}
}
@Test
fun `project with top-level pyproject-toml without uv-tool table is not automatically linked`() = timeoutRunBlocking(timeout = 20.seconds) {
val projectPath = testRoot.resolve("project")
projectPath.createFile("pyproject.toml").writeText("""
[project]
name = "project"
@@ -79,7 +77,7 @@ class PyUvOpenIntegrationTest {
@Test
fun `test monorepo without top-level pyproject-toml and with sibling path dependency`() = timeoutRunBlocking(timeout = 20.seconds) {
val projectPath = testRoot.resolve("project")
projectPath.createFile("libs/project1/pyproject.toml").writeText("""
[project]
name = "project1"
@@ -123,7 +121,7 @@ class PyUvOpenIntegrationTest {
@Test
fun `test monorepo with two independent workspaces`() = timeoutRunBlocking(timeout = 20.seconds) {
val projectPath = testRoot.resolve("project")
projectPath.createFile("workspace1/pyproject.toml").writeText("""
[project]
name = "workspace1"
@@ -197,5 +195,4 @@ class PyUvOpenIntegrationTest {
}
}
}
}