From 8cc9b6ed9761903d74720367dca667d71c8d5644 Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Fri, 9 May 2025 18:53:40 +0300 Subject: [PATCH] PY-79488 Reformat PyUvOpenIntegrationTest.kt GitOrigin-RevId: a8aaccdc529f2f3853426293819f96eea94a4f7f --- .../projectModel/uv/PyUvOpenIntegrationTest.kt | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/python/testSrc/com/jetbrains/python/projectModel/uv/PyUvOpenIntegrationTest.kt b/python/testSrc/com/jetbrains/python/projectModel/uv/PyUvOpenIntegrationTest.kt index 1460ed99899d..7f02a5d73719 100644 --- a/python/testSrc/com/jetbrains/python/projectModel/uv/PyUvOpenIntegrationTest.kt +++ b/python/testSrc/com/jetbrains/python/projectModel/uv/PyUvOpenIntegrationTest.kt @@ -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().getLinkedProjects()) + CollectionAssertions.assertEqualsUnordered(listOf(projectPath), it.service().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().getLinkedProjects()) + CollectionAssertions.assertEqualsUnordered(listOf(projectPath), project.service().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 { } } } - }