void () { runPythonTest(new PyProcessWithConsoleTestTask<PyTestTestProcessRunner>("/testRunner/env/pytest/testNameBeforeTestStarted", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyTestTestProcessRunner createProcessRunner() { return new PyTestTestProcessRunner("test_test.py", 0); } @Override protected void checkTestResults(@NotNull final PyTestTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertEquals("Test name before message broke output", """ Test tree: [root](+) .test_test(+) ..SampleTest1(+) ...test_sample_1(+) ...test_sample_2(+) ...test_sample_3(+) ...test_sample_4(+) ..SampleTest2(+) ...test_sample_5(+) ...test_sample_6(+) ...test_sample_7(+) ...test_sample_8(+) """, runner.getFormattedTestTree()); } }); }