void () { runPythonTest(new PyConsoleTask("/debug") { @Override public void testing() throws Exception { exec("from os import getenv"); exec("print(\"Hi\")"); waitForOutput("Hi"); addTextToEditor("getenv()"); ApplicationManager.getApplication().runReadAction(() -> { checkParameters(7, getConsoleFile(), "key, default=None", new String[]{"key, "}); }); } }); }