diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-20 07:34:21 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-26 11:41:19 +0200 |
| commit | a1e9e9abc592b8f44fa798c6e4e225b1a04f757c (patch) | |
| tree | 7c0713759aa50f55b639433675015e385c434e04 /tests/db_functions | |
| parent | c773d5794eb425c4836c726bdf6e1e742c94e9c0 (diff) | |
Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle the deprecation of migration operations."
This reverts commit 41019e48bbf082c985e6ba3bad34d118b903bff1.
Diffstat (limited to 'tests/db_functions')
| -rw-r--r-- | tests/db_functions/migrations/0001_setup_extensions.py | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/tests/db_functions/migrations/0001_setup_extensions.py b/tests/db_functions/migrations/0001_setup_extensions.py index 5909a96eb8..0289055499 100644 --- a/tests/db_functions/migrations/0001_setup_extensions.py +++ b/tests/db_functions/migrations/0001_setup_extensions.py @@ -1,22 +1,11 @@ -from django.db import migrations -from django.db.migrations.operations.base import Operation - - -class DummyOperation(Operation): - def state_forwards(self, app_label, state): - pass - - def database_forwards(self, app_label, schema_editor, from_state, to_state): - pass - - def database_backwards(self, app_label, schema_editor, from_state, to_state): - pass +from unittest import mock +from django.db import migrations try: from django.contrib.postgres.operations import CryptoExtension except ImportError: - CryptoExtension = DummyOperation + CryptoExtension = mock.Mock() class Migration(migrations.Migration): |
