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