Skip to content

Commit 28aaa3c

Browse files
committed
Fix type of SimpleTestCase.databases defs
1 parent 0e0bf67 commit 28aaa3c

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

tests/testapp/test_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
class CallCheckTest(TestCase):
1111

12-
databases = ["default", "other"]
12+
databases = {"default", "other"}
1313

1414
def test_check(self):
1515
call_command("check", "--database", "default", "--database", "other")
1616

1717

1818
class VariablesTests(TransactionTestCase):
1919

20-
databases = ["default", "other"]
20+
databases = {"default", "other"}
2121

2222
def test_passes(self):
2323
assert check_variables(app_configs=None, databases=["default", "other"]) == []

tests/testapp/test_dynamicfield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def test_simple(self):
290290
@isolate_apps("tests.testapp")
291291
class TestCheck(DynColTestCase):
292292

293-
databases = ["default", "other"]
293+
databases = {"default", "other"}
294294

295295
def test_db_not_mariadb(self):
296296
class Valid(models.Model):

tests/testapp/test_enumfield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_contains_lookup(self):
9898

9999
class TestCheck(TestCase):
100100

101-
databases = ["default", "other"]
101+
databases = {"default", "other"}
102102

103103
def test_check(self):
104104
errors = EnumModel.check()

tests/testapp/test_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def table_storage_engine(table_name):
3434

3535
class PluginOperationTests(TransactionTestCase):
3636

37-
databases = ["default", "other"]
37+
databases = {"default", "other"}
3838

3939
@classmethod
4040
def setUpClass(cls):

tests/testapp/test_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_cast_string(self):
3636

3737
class GlobalStatusTests(TestCase):
3838

39-
databases = ["default", "other"]
39+
databases = {"default", "other"}
4040

4141
def test_get(self):
4242
running = global_status.get("Threads_running")
@@ -126,7 +126,7 @@ def test_other_databases(self):
126126

127127
class SessionStatusTests(TestCase):
128128

129-
databases = ["default", "other"]
129+
databases = {"default", "other"}
130130

131131
def test_get_bytes_received(self):
132132
bytes_received = session_status.get("Bytes_received")

tests/testapp/test_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def check_timestamp(self, expected, using="default"):
2323
@override_mysql_variables(TIMESTAMP=123)
2424
class OverrideVarsClassTest(OverrideVarsMethodTest):
2525

26-
databases = ["default", "other"]
26+
databases = {"default", "other"}
2727

2828
def test_class_decorator(self):
2929
self.check_timestamp(123)

tests/testapp/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_hours(self):
6565

6666
class IndexNameTests(TestCase):
6767

68-
databases = ["default", "other"]
68+
databases = {"default", "other"}
6969

7070
def test_requires_field_names(self):
7171
with pytest.raises(ValueError) as excinfo:

0 commit comments

Comments
 (0)