PyTestTestProcessRunner () { return new PyTestTestProcessRunner("test_test.py", 0) { @Override protected void configurationCreatedAndWillLaunch(@NotNull final PyTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.setKeywords("asdasdasd"); if (useCustomMode) { configuration.getTarget().setTargetType(PyRunTargetVariant.CUSTOM); } } }; }