DS-5427 DS-5549 Fixed parsing magic commands after empty cells

GitOrigin-RevId: d2359bacd7f772ebeaaabe7d1d43da060d2f7928
This commit is contained in:
Olga.Lavrichenko
2023-09-12 13:48:51 +00:00
committed by intellij-monorepo-bot
parent 149b8f7fd4
commit c9b1045a46
8 changed files with 327 additions and 4 deletions

View File

@@ -604,6 +604,16 @@ public abstract class PythonCommonFormatterTest extends PythonCommonTestCase {
//DS-4478
public void testSpaceShellCommandsPathJupyter() { doTest(false, "formatter/jupyter/", ".ipynb"); }
//DS-5427
public void testMagicPath() { doTest(false, "formatter/jupyter/", ".ipynb"); }
//DS-5427
public void testMagicPathEmptyCells() { doTest(false, "formatter/jupyter/", ".ipynb"); }
//DS-5427
public void testMagicPathComment() { doTest(false, "formatter/jupyter/", ".ipynb"); }
/**
* This test merely checks that call to {@link com.intellij.psi.codeStyle.CodeStyleManager#reformat(com.intellij.psi.PsiElement)}
* is possible for Python sources.