+ source /opt/miniconda3/bin/activate
++ _CONDA_ROOT=/opt/miniconda3
++ . /opt/miniconda3/etc/profile.d/conda.sh
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ '[' -z '' ']'
+++ export CONDA_SHLVL=0
+++ CONDA_SHLVL=0
+++ '[' -n '' ']'
+++++ dirname /opt/miniconda3/bin/conda
++++ dirname /opt/miniconda3/bin
+++ PATH=/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export PATH
+++ '[' -z '' ']'
+++ PS1=
++ conda activate
++ local cmd=activate
++ case "$cmd" in
++ __conda_activate activate
++ '[' -n '' ']'
++ local ask_conda
+++ PS1=
+++ __conda_exe shell.posix activate
+++ /opt/miniconda3/bin/conda shell.posix activate
++ ask_conda='PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''1'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ eval 'PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''1'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+++ PS1='(base) '
+++ export PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export CONDA_PREFIX=/opt/miniconda3
+++ CONDA_PREFIX=/opt/miniconda3
+++ export CONDA_SHLVL=1
+++ CONDA_SHLVL=1
+++ export CONDA_DEFAULT_ENV=base
+++ CONDA_DEFAULT_ENV=base
+++ export 'CONDA_PROMPT_MODIFIER=(base) '
+++ CONDA_PROMPT_MODIFIER='(base) '
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ __conda_hashr
++ '[' -n '' ']'
++ '[' -n '' ']'
++ hash -r
+ conda activate testbed
+ local cmd=activate
+ case "$cmd" in
+ __conda_activate activate testbed
+ '[' -n '' ']'
+ local ask_conda
++ PS1='(base) '
++ __conda_exe shell.posix activate testbed
++ /opt/miniconda3/bin/conda shell.posix activate testbed
+ ask_conda='PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''2'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_1='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+ eval 'PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''2'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_1='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ PS1='(testbed) '
++ export PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ export CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ export CONDA_SHLVL=2
++ CONDA_SHLVL=2
++ export CONDA_DEFAULT_ENV=testbed
++ CONDA_DEFAULT_ENV=testbed
++ export 'CONDA_PROMPT_MODIFIER=(testbed) '
++ CONDA_PROMPT_MODIFIER='(testbed) '
++ export CONDA_PREFIX_1=/opt/miniconda3
++ CONDA_PREFIX_1=/opt/miniconda3
++ export CONDA_EXE=/opt/miniconda3/bin/conda
++ CONDA_EXE=/opt/miniconda3/bin/conda
++ export _CE_M=
++ _CE_M=
++ export _CE_CONDA=
++ _CE_CONDA=
++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+ __conda_hashr
+ '[' -n '' ']'
+ '[' -n '' ']'
+ hash -r
+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git status
On branch main
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   django/db/migrations/operations/models.py

no changes added to commit (use "git add" and/or "git commit -a")
+ git show
commit b35713c19b0be9fe8ced6f3f31e5953e30907149
Author: SWE-bench <setup@swebench.config>
Date:   Wed Sep 10 12:20:57 2025 +0000

    SWE-bench
+ git -c core.fileMode=false diff a754b82dac511475b6276039471ccd17cc64aeb8
diff --git a/django/db/migrations/operations/models.py b/django/db/migrations/operations/models.py
index 982816be3a..c120f5d32d 100644
--- a/django/db/migrations/operations/models.py
+++ b/django/db/migrations/operations/models.py
@@ -320,12 +320,13 @@ class RenameModel(ModelOperation):
         new_model = to_state.apps.get_model(app_label, self.new_name)
         if self.allow_migrate_model(schema_editor.connection.alias, new_model):
             old_model = from_state.apps.get_model(app_label, self.old_name)
+            old_db_table = old_model._meta.db_table
+            new_db_table = new_model._meta.db_table
+            # Don't alter when a table name is not changed.
+            if old_db_table == new_db_table:
+                return
             # Move the main table
-            schema_editor.alter_db_table(
-                new_model,
-                old_model._meta.db_table,
-                new_model._meta.db_table,
-            )
+            schema_editor.alter_db_table(new_model, old_db_table, new_db_table)
             # Alter the fields pointing to us
             for related_object in old_model._meta.related_objects:
                 if related_object.related_model == old_model:
+ source /opt/miniconda3/bin/activate
++ _CONDA_ROOT=/opt/miniconda3
++ . /opt/miniconda3/etc/profile.d/conda.sh
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ '[' -z x ']'
++ conda activate
++ local cmd=activate
++ case "$cmd" in
++ __conda_activate activate
++ '[' -n '' ']'
++ local ask_conda
+++ PS1='(testbed) '
+++ __conda_exe shell.posix activate
+++ /opt/miniconda3/bin/conda shell.posix activate
++ ask_conda='PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''3'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_PREFIX_2='\''/opt/miniconda3/envs/testbed'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ eval 'PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''3'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_PREFIX_2='\''/opt/miniconda3/envs/testbed'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+++ PS1='(base) '
+++ export PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export CONDA_PREFIX=/opt/miniconda3
+++ CONDA_PREFIX=/opt/miniconda3
+++ export CONDA_SHLVL=3
+++ CONDA_SHLVL=3
+++ export CONDA_DEFAULT_ENV=base
+++ CONDA_DEFAULT_ENV=base
+++ export 'CONDA_PROMPT_MODIFIER=(base) '
+++ CONDA_PROMPT_MODIFIER='(base) '
+++ export CONDA_PREFIX_2=/opt/miniconda3/envs/testbed
+++ CONDA_PREFIX_2=/opt/miniconda3/envs/testbed
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ __conda_hashr
++ '[' -n '' ']'
++ '[' -n '' ']'
++ hash -r
+ conda activate testbed
+ local cmd=activate
+ case "$cmd" in
+ __conda_activate activate testbed
+ '[' -n '' ']'
+ local ask_conda
++ PS1='(base) '
++ __conda_exe shell.posix activate testbed
++ /opt/miniconda3/bin/conda shell.posix activate testbed
+ ask_conda='PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''4'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_3='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+ eval 'PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''4'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_3='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ PS1='(testbed) '
++ export PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ export CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ export CONDA_SHLVL=4
++ CONDA_SHLVL=4
++ export CONDA_DEFAULT_ENV=testbed
++ CONDA_DEFAULT_ENV=testbed
++ export 'CONDA_PROMPT_MODIFIER=(testbed) '
++ CONDA_PROMPT_MODIFIER='(testbed) '
++ export CONDA_PREFIX_3=/opt/miniconda3
++ CONDA_PREFIX_3=/opt/miniconda3
++ export CONDA_EXE=/opt/miniconda3/bin/conda
++ CONDA_EXE=/opt/miniconda3/bin/conda
++ export _CE_M=
++ _CE_M=
++ export _CE_CONDA=
++ _CE_CONDA=
++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+ __conda_hashr
+ '[' -n '' ']'
+ '[' -n '' ']'
+ hash -r
+ python -m pip install -e .
Obtaining file:///testbed
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Checking if build backend supports build_editable: started
  Checking if build backend supports build_editable: finished with status 'done'
  Getting requirements to build editable: started
  Getting requirements to build editable: finished with status 'done'
  Preparing editable metadata (pyproject.toml): started
  Preparing editable metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: asgiref>=3.3.2 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from Django==4.1.dev20250910122057) (3.8.1)
Requirement already satisfied: sqlparse>=0.2.2 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from Django==4.1.dev20250910122057) (0.5.1)
Requirement already satisfied: typing-extensions>=4 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from asgiref>=3.3.2->Django==4.1.dev20250910122057) (4.12.2)
Building wheels for collected packages: Django
  Building editable for Django (pyproject.toml): started
  Building editable for Django (pyproject.toml): finished with status 'done'
  Created wheel for Django: filename=django-4.1.dev20250910122057-0.editable-py3-none-any.whl size=26846 sha256=d76d96b9117c871c1253e07dbee6e0ec667d8641e9b83f171990a5a0c5d7b84b
  Stored in directory: /tmp/pip-ephem-wheel-cache-7bfq41d0/wheels/7d/66/67/70d1ee2124ccf21d601c352e25cdca10f611f7c8b3f9ffb9e4
Successfully built Django
Installing collected packages: Django
  Attempting uninstall: Django
    Found existing installation: Django 4.1.dev20211027083502
    Uninstalling Django-4.1.dev20211027083502:
      Successfully uninstalled Django-4.1.dev20211027083502
Successfully installed Django-4.1.dev20250910122057
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ git checkout a754b82dac511475b6276039471ccd17cc64aeb8 tests/migrations/test_operations.py
Updated 0 paths from 274a7e8f81
+ git apply -v -
Checking patch tests/migrations/test_operations.py...
Applied patch tests/migrations/test_operations.py cleanly.
+ : '>>>>> Start Test Output'
+ ./tests/runtests.py --verbosity 2 --settings=test_sqlite --parallel 1 migrations.test_operations
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Testing against Django installed in '/testbed/django'
Importing application migrations
Found 120 test(s).
Operations to perform:
  Synchronize unmigrated apps: auth, contenttypes, messages, migrations, sessions, staticfiles
  Apply all migrations: admin, sites
Synchronizing apps without migrations:
  Creating tables...
    Creating table django_content_type
    Creating table auth_permission
    Creating table auth_group
    Creating table auth_user
    Creating table django_session
    Creating table migrations_modelwithcustombase
    Creating table migrations_unmigratedmodel
    Running deferred SQL...
Running migrations:
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying sites.0001_initial... OK
  Applying sites.0002_alter_domain_unique... OK
Creating test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Operations to perform:
  Synchronize unmigrated apps: auth, contenttypes, messages, migrations, sessions, staticfiles
  Apply all migrations: admin, sites
Synchronizing apps without migrations:
  Creating tables...
    Creating table django_content_type
    Creating table auth_permission
    Creating table auth_group
    Creating table auth_user
    Creating table django_session
    Creating table migrations_modelwithcustombase
    Creating table migrations_unmigratedmodel
    Running deferred SQL...
Running migrations:
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying sites.0001_initial... OK
  Applying sites.0002_alter_domain_unique... OK
System check identified no issues (0 silenced).
test_reference_field_by_through_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_from_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_name (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_remote_field_model (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_through (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_to_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_model (migrations.test_operations.FieldOperationTests) ... ok
test_add_binaryfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField/BinaryField. ... ok
test_add_charfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField. ... ok
test_add_constraint (migrations.test_operations.OperationTests) ... ok
test_add_constraint_combinable (migrations.test_operations.OperationTests) ... ok
test_add_constraint_percent_escaping (migrations.test_operations.OperationTests) ... ok
test_add_covering_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_field (migrations.test_operations.OperationTests)
Tests the AddField operation. ... ok
test_add_field_m2m (migrations.test_operations.OperationTests)
Tests the AddField operation with a ManyToManyField. ... ok
test_add_field_preserve_default (migrations.test_operations.OperationTests)
Tests the AddField operation's state alteration ... ok
test_add_func_index (migrations.test_operations.OperationTests) ... ok
test_add_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_index (migrations.test_operations.OperationTests)
Test the AddIndex operation. ... ok
test_add_index_state_forwards (migrations.test_operations.OperationTests) ... ok
test_add_or_constraint (migrations.test_operations.OperationTests) ... ok
test_add_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_textfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField. ... ok
test_alter_field (migrations.test_operations.OperationTests)
Tests the AlterField operation. ... ok
test_alter_field_add_db_column_noop (migrations.test_operations.OperationTests)
AlterField operation is a noop when adding only a db_column and the ... ok
test_alter_field_m2m (migrations.test_operations.OperationTests) ... ok
test_alter_field_pk (migrations.test_operations.OperationTests)
Tests the AlterField operation on primary keys (for things like PostgreSQL's SERIAL weirdness) ... ok
test_alter_field_pk_fk (migrations.test_operations.OperationTests)
Tests the AlterField operation on primary keys changes any FKs pointing to it. ... ok
test_alter_field_pk_mti_fk (migrations.test_operations.OperationTests) ... ok
test_alter_field_reloads_state_on_fk_target_changes (migrations.test_operations.OperationTests)
If AlterField doesn't reload state appropriately, the second AlterField ... ok
test_alter_field_reloads_state_on_fk_with_to_field_related_name_target_type_change (migrations.test_operations.OperationTests) ... ok
test_alter_field_reloads_state_on_fk_with_to_field_target_changes (migrations.test_operations.OperationTests)
If AlterField doesn't reload state appropriately, the second AlterField ... ok
test_alter_field_reloads_state_on_fk_with_to_field_target_type_change (migrations.test_operations.OperationTests) ... ok
test_alter_field_with_func_index (migrations.test_operations.OperationTests) ... ok
test_alter_field_with_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_alter_field_with_index (migrations.test_operations.OperationTests)
Test AlterField operation with an index to ensure indexes created via ... ok
test_alter_fk (migrations.test_operations.OperationTests)
Creating and then altering an FK works correctly ... ok
test_alter_fk_non_fk (migrations.test_operations.OperationTests)
Altering an FK to a non-FK works (#23244) ... ok
test_alter_index_together (migrations.test_operations.OperationTests)
Tests the AlterIndexTogether operation. ... ok
test_alter_index_together_remove (migrations.test_operations.OperationTests) ... ok
test_alter_index_together_remove_with_unique_together (migrations.test_operations.OperationTests) ... ok
test_alter_model_managers (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_alter_model_managers_emptying (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_alter_model_options (migrations.test_operations.OperationTests)
Tests the AlterModelOptions operation. ... ok
test_alter_model_options_emptying (migrations.test_operations.OperationTests)
The AlterModelOptions operation removes keys from the dict (#23121) ... ok
test_alter_model_table (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation. ... ok
test_alter_model_table_m2m (migrations.test_operations.OperationTests)
AlterModelTable should rename auto-generated M2M tables. ... ok
test_alter_model_table_none (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation if the table name is set to None. ... ok
test_alter_model_table_noop (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation if the table name is not changed. ... ok
test_alter_order_with_respect_to (migrations.test_operations.OperationTests)
Tests the AlterOrderWithRespectTo operation. ... ok
test_alter_unique_together (migrations.test_operations.OperationTests)
Tests the AlterUniqueTogether operation. ... ok
test_alter_unique_together_remove (migrations.test_operations.OperationTests) ... ok
test_autofield__bigautofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from AutoField to BigAutoField. ... ok
test_column_name_quoting (migrations.test_operations.OperationTests)
Column names that are SQL keywords shouldn't cause problems when used ... ok
test_create_model (migrations.test_operations.OperationTests)
Tests the CreateModel operation. ... ok
test_create_model_inheritance (migrations.test_operations.OperationTests)
Tests the CreateModel operation on a multi-table inheritance setup. ... ok
test_create_model_m2m (migrations.test_operations.OperationTests)
Test the creation of a model with a ManyToMany field and the ... ok
test_create_model_managers (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_create_model_with_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_covering_unique_constraint (migrations.test_operations.OperationTests) ... skipped "Database doesn't support feature(s): supports_covering_indexes"
test_create_model_with_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_base (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_field_name (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_manager_name (migrations.test_operations.OperationTests) ... ok
test_create_model_with_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_unique_after (migrations.test_operations.OperationTests)
Tests the CreateModel operation directly followed by an ... ok
test_create_proxy_model (migrations.test_operations.OperationTests)
CreateModel ignores proxy models. ... ok
test_create_unmanaged_model (migrations.test_operations.OperationTests)
CreateModel ignores unmanaged models. ... ok
test_delete_model (migrations.test_operations.OperationTests)
Tests the DeleteModel operation. ... ok
test_delete_mti_model (migrations.test_operations.OperationTests) ... ok
test_delete_proxy_model (migrations.test_operations.OperationTests)
Tests the DeleteModel operation ignores proxy models. ... ok
test_model_with_bigautofield (migrations.test_operations.OperationTests)
A model with BigAutoField can be created. ... ok
test_remove_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_covering_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_field (migrations.test_operations.OperationTests)
Tests the RemoveField operation. ... ok
test_remove_field_m2m (migrations.test_operations.OperationTests) ... ok
test_remove_field_m2m_with_through (migrations.test_operations.OperationTests) ... ok
test_remove_fk (migrations.test_operations.OperationTests)
Tests the RemoveField operation on a foreign key. ... ok
test_remove_func_index (migrations.test_operations.OperationTests) ... ok
test_remove_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_index (migrations.test_operations.OperationTests)
Test the RemoveIndex operation. ... ok
test_remove_index_state_forwards (migrations.test_operations.OperationTests) ... ok
test_remove_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_rename_field (migrations.test_operations.OperationTests)
Tests the RenameField operation. ... ok
test_rename_field_case (migrations.test_operations.OperationTests) ... ok
test_rename_field_reloads_state_on_fk_target_changes (migrations.test_operations.OperationTests)
If RenameField doesn't reload state appropriately, the AlterField ... ok
test_rename_field_with_db_column (migrations.test_operations.OperationTests) ... ok
test_rename_m2m_model_after_rename_field (migrations.test_operations.OperationTests)
RenameModel renames a many-to-many column after a RenameField. ... ok
test_rename_m2m_target_model (migrations.test_operations.OperationTests) ... ok
test_rename_m2m_through_model (migrations.test_operations.OperationTests) ... ok
test_rename_missing_field (migrations.test_operations.OperationTests) ... ok
test_rename_model (migrations.test_operations.OperationTests)
Tests the RenameModel operation. ... ok
test_rename_model_state_forwards (migrations.test_operations.OperationTests)
RenameModel operations shouldn't trigger the caching of rendered apps ... ok
test_rename_model_with_db_table_noop (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_m2m (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_self_referential_fk (migrations.test_operations.OperationTests)
Tests the RenameModel operation on model with self referential FK. ... ok
test_rename_model_with_self_referential_m2m (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_superclass_fk (migrations.test_operations.OperationTests)
Tests the RenameModel operation on a model which has a superclass that ... ok
test_rename_referenced_field_state_forward (migrations.test_operations.OperationTests) ... ok
test_repoint_field_m2m (migrations.test_operations.OperationTests) ... ok
test_run_python (migrations.test_operations.OperationTests)
Tests the RunPython operation ... ok
test_run_python_atomic (migrations.test_operations.OperationTests)
Tests the RunPython operation correctly handles the "atomic" keyword ... ok
test_run_python_noop (migrations.test_operations.OperationTests)
#24098 - Tests no-op RunPython operations. ... ok
test_run_python_related_assignment (migrations.test_operations.OperationTests)
#24282 - Model changes to a FK reverse side update the model ... ok
test_run_sql (migrations.test_operations.OperationTests)
Tests the RunSQL operation. ... ok
test_run_sql_add_missing_semicolon_on_collect_sql (migrations.test_operations.OperationTests) ... ok
test_run_sql_noop (migrations.test_operations.OperationTests)
#24098 - Tests no-op RunSQL operations. ... ok
test_run_sql_params (migrations.test_operations.OperationTests)
#23426 - RunSQL should accept parameters. ... ok
test_run_sql_params_invalid (migrations.test_operations.OperationTests)
#23426 - RunSQL should fail when a list of statements with an incorrect ... ok
test_separate_database_and_state (migrations.test_operations.OperationTests)
Tests the SeparateDatabaseAndState operation. ... ok
test_separate_database_and_state2 (migrations.test_operations.OperationTests)
A complex SeparateDatabaseAndState operation: Multiple operations both ... ok
test_smallfield_autofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from SmallAutoField to AutoField. ... ok
test_smallfield_bigautofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from SmallAutoField to BigAutoField. ... ok
test_add_field_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Tests the AddField operation. ... ok
test_create_ignore_swapped (migrations.test_operations.SwappableOperationTests)
The CreateTable operation ignores swapped models. ... ok
test_delete_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Tests the DeleteModel operation ignores swapped models. ... ok
test_indexes_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Add/RemoveIndex operations ignore swapped models. ... ok
test_references_model_mixin (migrations.test_operations.TestCreateModel) ... ok

----------------------------------------------------------------------
Ran 120 tests in 7.372s

OK (skipped=1)
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
+ : '>>>>> End Test Output'
+ git checkout a754b82dac511475b6276039471ccd17cc64aeb8 tests/migrations/test_operations.py
Updated 1 path from 274a7e8f81
