2018-07-12 12:14:24 +08:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
|
|
|
|
class NoDatabaseTests(unittest.TestCase):
|
|
|
|
def test_nothing(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class DefaultDatabaseTests(NoDatabaseTests):
|
|
|
|
databases = {'default'}
|
|
|
|
|
|
|
|
|
2021-02-15 11:42:47 +08:00
|
|
|
class DefaultDatabaseSerializedTests(NoDatabaseTests):
|
|
|
|
databases = {'default'}
|
|
|
|
serialized_rollback = True
|
|
|
|
|
|
|
|
|
2018-07-12 12:14:24 +08:00
|
|
|
class OtherDatabaseTests(NoDatabaseTests):
|
|
|
|
databases = {'other'}
|
|
|
|
|
|
|
|
|
|
|
|
class AllDatabasesTests(NoDatabaseTests):
|
|
|
|
databases = '__all__'
|