mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests for unittest2 removed (not used anymore)
GitOrigin-RevId: 91bb6d580e7527ab69216f1ae4143be065d5bbc2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fea053bee6
commit
6feb35abfb
@@ -96,9 +96,9 @@ envs {
|
||||
|
||||
createPython("py27_django11_full",
|
||||
python27version,
|
||||
["django==1.11", "tox>=3.8.3", "nose", "pytest", "Twisted", "behave", "unittest2", "teamcity-messages", "django-nose",
|
||||
["django==1.11", "tox>=3.8.3", "nose", "pytest", "Twisted", "behave", "teamcity-messages", "django-nose",
|
||||
"untangle"] + ( Os.isFamily(Os.FAMILY_WINDOWS) ? ['pypiwin32'] : [] ), //win32api is required for pypiwin32
|
||||
"python2.7\ndjango\nnose\npytest\nbehave\nnpackaging\ntox\nunittest2\ntwisted\ndjango-nose\nuntangle\nmessages",
|
||||
"python2.7\ndjango\nnose\npytest\nbehave\nnpackaging\ntox\ntwisted\ndjango-nose\nuntangle\nmessages",
|
||||
true)
|
||||
|
||||
createPython("py38_django22_full",
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
from unittest2 import TestCase
|
||||
|
||||
|
||||
class SampleTest(TestCase):
|
||||
|
||||
def test_sample(self):
|
||||
for i in range(10):
|
||||
with self.subTest(i=i):
|
||||
self.assertTrue(i > 3)
|
||||
@@ -46,7 +46,6 @@ import java.util.List;
|
||||
import static com.intellij.testFramework.assertions.Assertions.assertThat;
|
||||
import static com.jetbrains.env.ut.PyScriptTestProcessRunner.TEST_TARGET_PREFIX;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
|
||||
/**
|
||||
* @author traff
|
||||
@@ -448,42 +447,6 @@ public final class PythonUnitTestingTest extends PythonUnitTestingLikeTest<PyUni
|
||||
});
|
||||
}
|
||||
|
||||
@EnvTestTagsRequired(tags = "unittest2")
|
||||
@Test
|
||||
public void testUnitTest2() {
|
||||
runPythonTest(new PyUnitTestProcessWithConsoleTestTask("testRunner/env/unit/unittest2", "test_test.py") {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected PyUnitTestProcessRunner createProcessRunner() {
|
||||
return new PyUnitTestProcessRunner(toFullPath(getMyScriptName()), 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkTestResults(@NotNull final PyUnitTestProcessRunner runner,
|
||||
@NotNull final String stdout,
|
||||
@NotNull final String stderr,
|
||||
@NotNull final String all, int exitCode) {
|
||||
runner.getFormattedTestTree();
|
||||
assertEquals("unittest2 produced wrong tree", "Test tree:\n" +
|
||||
"[root](-)\n" +
|
||||
".test_test(-)\n" +
|
||||
"..SampleTest(-)\n" +
|
||||
"...test_sample(-)\n" +
|
||||
"....(i=0)(-)\n" +
|
||||
"....(i=1)(-)\n" +
|
||||
"....(i=2)(-)\n" +
|
||||
"....(i=3)(-)\n" +
|
||||
"....(i=4)(+)\n" +
|
||||
"....(i=5)(+)\n" +
|
||||
"....(i=6)(+)\n" +
|
||||
"....(i=7)(+)\n" +
|
||||
"....(i=8)(+)\n" +
|
||||
"....(i=9)(+)\n", runner.getFormattedTestTree());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raising SkipTest on class setup should not lead to KeyError
|
||||
|
||||
Reference in New Issue
Block a user