Skip to content

Commit 186b0d9

Browse files
Add mysqlclient deps to reveal stubtest errors (#2656)
1 parent e2b73ba commit 186b0d9

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ pytest-mypy-plugins==3.2.0
44
pytest-shard==0.1.2
55
pytest-xdist==3.6.1
66

7+
# Needed by stubtest
8+
mysqlclient==2.2.7
9+
710
# Django deps:
811
psycopg2-binary
912
Django==5.2.0

scripts/stubtest/allowlist_todo.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ django.contrib.gis.admin.options.GISModelAdmin
157157
django.contrib.gis.admin.options.GISModelAdmin.gis_widget
158158
django.contrib.gis.admin.options.GeoModelAdminMixin
159159
django.contrib.gis.admin.site
160-
django.contrib.gis.db.backends.mysql.base
161-
django.contrib.gis.db.backends.mysql.introspection
162160
django.contrib.gis.db.backends.oracle.features.DatabaseFeatures.django_test_skips
163161
django.contrib.gis.db.backends.postgis.operations.PostGISOperations.convert_extent
164162
django.contrib.gis.db.backends.postgis.operations.PostGISOperations.convert_extent3d
@@ -450,7 +448,14 @@ django.core.management.commands.makemessages.TranslatableFile.path
450448
django.core.servers.basehttp.ServerHandler.__init__
451449
django.core.servers.basehttp.ThreadedWSGIServer.__init__
452450
django.db.backends.ddl_references.Expressions
453-
django.db.backends.mysql.base
451+
django.db.backends.mysql.base.DatabaseWrapper.data_type_check_constraints
452+
django.db.backends.mysql.base.DatabaseWrapper.display_name
453+
django.db.backends.mysql.base.DatabaseWrapper.mysql_is_mariadb
454+
django.db.backends.mysql.base.DatabaseWrapper.mysql_server_data
455+
django.db.backends.mysql.base.DatabaseWrapper.mysql_server_info
456+
django.db.backends.mysql.base.DatabaseWrapper.mysql_version
457+
django.db.backends.mysql.base.DatabaseWrapper.ops
458+
django.db.backends.mysql.base.DatabaseWrapper.sql_mode
454459
django.db.backends.mysql.features.DatabaseFeatures.can_rename_index
455460
django.db.backends.mysql.features.DatabaseFeatures.can_return_rows_from_bulk_insert
456461
django.db.backends.mysql.features.DatabaseFeatures.django_test_skips
@@ -459,7 +464,12 @@ django.db.backends.mysql.features.DatabaseFeatures.supports_select_difference
459464
django.db.backends.mysql.features.DatabaseFeatures.supports_select_intersection
460465
django.db.backends.mysql.features.DatabaseFeatures.supports_table_check_constraints
461466
django.db.backends.mysql.features.DatabaseFeatures.test_collations
462-
django.db.backends.mysql.introspection
467+
django.db.backends.mysql.introspection.DatabaseIntrospection.get_storage_engine
468+
django.db.backends.mysql.introspection.InfoLine.__match_args__
469+
django.db.backends.mysql.introspection.InfoLine.__new__
470+
django.db.backends.mysql.introspection.InfoLine._fields
471+
django.db.backends.mysql.introspection.InfoLine.comment
472+
django.db.backends.mysql.introspection.TableInfo
463473
django.db.backends.mysql.schema.DatabaseSchemaEditor.sql_alter_column_comment
464474
django.db.backends.oracle.features.DatabaseFeatures.introspected_field_types
465475
django.db.backends.oracle.features.DatabaseFeatures.supports_collation_on_charfield

0 commit comments

Comments
 (0)