2018-07-12 00:14:24 -04:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
|
|
|
|
class NoDatabaseTests(unittest.TestCase):
|
|
|
|
def test_nothing(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class DefaultDatabaseTests(NoDatabaseTests):
|
2022-02-03 20:24:19 +01:00
|
|
|
databases = {"default"}
|
2018-07-12 00:14:24 -04:00
|
|
|
|
|
|
|
|
2021-02-14 22:42:47 -05:00
|
|
|
class DefaultDatabaseSerializedTests(NoDatabaseTests):
|
2022-02-03 20:24:19 +01:00
|
|
|
databases = {"default"}
|
2021-02-14 22:42:47 -05:00
|
|
|
serialized_rollback = True
|
|
|
|
|
|
|
|
|
2018-07-12 00:14:24 -04:00
|
|
|
class OtherDatabaseTests(NoDatabaseTests):
|
2022-02-03 20:24:19 +01:00
|
|
|
databases = {"other"}
|
2018-07-12 00:14:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
class AllDatabasesTests(NoDatabaseTests):
|
2022-02-03 20:24:19 +01:00
|
|
|
databases = "__all__"
|