mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 23:31:05 +07:00
PY-46321 Renamed PyDocstring into Doctest to make more sense as a user-visible name in Markdown code fence blocks
GitOrigin-RevId: 1284ab756e522db0c8109b59d6d78b1d1f503a7f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
44b1a7097f
commit
6d8428ee4e
@@ -100,6 +100,30 @@ class PyCodeFenceTest : PyTestCase() {
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
fun testDoctestInjected() {
|
||||
myFixture.configureByText("a.md", """
|
||||
```doctest
|
||||
foo = 1
|
||||
f<caret>
|
||||
|
||||
```
|
||||
""".trimIndent())
|
||||
myFixture.completeBasic()
|
||||
assertContainsElements(lookupStrings, "foo")
|
||||
}
|
||||
|
||||
fun testDefaultPythonDialectsInCompletion() {
|
||||
myFixture.configureByText("a.md", """
|
||||
```<caret>
|
||||
foo = 1
|
||||
f
|
||||
|
||||
```
|
||||
""".trimIndent())
|
||||
myFixture.completeBasic()
|
||||
assertContainsElements(lookupStrings, "doctest", "python")
|
||||
}
|
||||
|
||||
private val lookupStrings: List<String>
|
||||
get() = myFixture.lookupElementStrings ?: emptyList()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user