diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-09-29 23:01:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-29 23:01:12 +0200 |
| commit | 8b84364d469e394d9f04b4f96a7da1fc16d93fce (patch) | |
| tree | 70551650237c5bc5cab9257c713ee28892c4c7f3 | |
| parent | 22448a4b65bdd6293192fb7845d31bba0405aeed (diff) | |
Fixed assertIndexExists() crash when non-index constraint exists on the same columns.
| -rw-r--r-- | tests/migrations/test_base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/migrations/test_base.py b/tests/migrations/test_base.py index b636d18ec4..24ae59ca1b 100644 --- a/tests/migrations/test_base.py +++ b/tests/migrations/test_base.py @@ -108,6 +108,7 @@ class MigrationTestBase(TransactionTestCase): .values() if ( c["columns"] == list(columns) + and c["index"] is True and (index_type is None or c["type"] == index_type) and not c["unique"] ) |
