We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c41c91c commit 5790ffeCopy full SHA for 5790ffe
tests/testapp/test_dynamicfield.py
@@ -2,6 +2,7 @@
2
3
import datetime as dt
4
import json
5
+from typing import cast
6
from unittest import mock
7
from unittest import SkipTest
8
@@ -12,6 +13,7 @@
12
13
from django.db import connection
14
from django.db import connections
15
from django.db import models
16
+from django.db.backends.mysql.base import DatabaseWrapper
17
from django.db.migrations.writer import MigrationWriter
18
from django.db.models import CharField
19
from django.db.models import Transform
@@ -27,7 +29,7 @@
27
29
class DynColTestCase(TestCase):
28
30
@classmethod
31
def setUpClass(cls):
- if not connection.mysql_is_mariadb:
32
+ if not cast(DatabaseWrapper, connection).mysql_is_mariadb:
33
raise SkipTest("Dynamic Columns require MariaDB")
34
super().setUpClass()
35
0 commit comments