void (@NotNull String sdkHome, @Nullable Sdk existingSdk) { super.runTestOn(sdkHome, existingSdk); myFixture.copyDirectoryToProject("testRunner/env/createConfigurationTest/configurationByContext/foo", ""); final PyAbstractTestConfiguration configuration = getConfiguration(); configuration.getTarget().setTargetType(PyRunTargetVariant.PYTHON); configuration.getTarget().setTarget("test_foo"); configuration.setWorkingDirectory(myFixture.getTempDirPath()); ReadAction.run(() -> assertThat("Failed to resolve qname", configuration.getTarget().asPsiElement(configuration), Matchers.instanceOf(PyFile.class))); }