void () { runPythonTest(new PyProcessWithConsoleTestTask<PyTestTestProcessRunner>("/testRunner/env/pytest/diff", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyTestTestProcessRunner createProcessRunner() { return new PyTestTestProcessRunner("test_diff.py", 1); } @Override protected void checkTestResults(@NotNull final PyTestTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { final String expectedConsoleText = """ Expected :'expected' Actual :'actual' <Click to see difference>"""; assertThat("No diff", runner.getAllConsoleText(), containsString(expectedConsoleText)); } }); }