mirror of
https://github.com/django/django.git
synced 2024-12-27 11:35:53 +00:00
e22c64dfc0
This is useful for debugging side effects affecting tests that are usually executed before a given test. Full suite and pair tests sort cases more or less deterministically, thus some test cross-dependencies are easier to reveal by reversing the order. Thanks Preston Timmons for the review.
58 lines
744 B
Python
58 lines
744 B
Python
from unittest import TestCase
|
|
|
|
from django.test import SimpleTestCase, TestCase as DjangoTestCase
|
|
|
|
|
|
class DjangoCase1(DjangoTestCase):
|
|
|
|
def test_1(self):
|
|
pass
|
|
|
|
def test_2(self):
|
|
pass
|
|
|
|
|
|
class DjangoCase2(DjangoTestCase):
|
|
|
|
def test_1(self):
|
|
pass
|
|
|
|
def test_2(self):
|
|
pass
|
|
|
|
|
|
class SimpleCase1(SimpleTestCase):
|
|
|
|
def test_1(self):
|
|
pass
|
|
|
|
def test_2(self):
|
|
pass
|
|
|
|
|
|
class SimpleCase2(SimpleTestCase):
|
|
|
|
def test_1(self):
|
|
pass
|
|
|
|
def test_2(self):
|
|
pass
|
|
|
|
|
|
class UnittestCase1(TestCase):
|
|
|
|
def test_1(self):
|
|
pass
|
|
|
|
def test_2(self):
|
|
pass
|
|
|
|
|
|
class UnittestCase2(TestCase):
|
|
|
|
def test_1(self):
|
|
pass
|
|
|
|
def test_2(self):
|
|
pass
|