diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-10 12:02:47 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-11 10:17:53 -0500 |
| commit | a0553d1a7cb4f5ecca90650ef9ebad4c44cf6b43 (patch) | |
| tree | ccbb78a04f66987ddf7dfc58974384c7df3fb704 /tests/admin_scripts/tests.py | |
| parent | fdcc9c47d51289576ce17849900c96c161273037 (diff) | |
[1.8.x] Prevented some test commands from needlessly running system checks.
This is a performance optimization and also fixes test errors with the
upcoming merge of contrib tests into tests/. The tests failed on MySQL
because the models with GeometryField were being checked but the
non-GIS MySQL backend didn't know how to handle them.
Backport of 197dd4b8f12164f6acebb3b959f9ac2040a40400 from master
Diffstat (limited to 'tests/admin_scripts/tests.py')
| -rw-r--r-- | tests/admin_scripts/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 63589963e0..9905630870 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1589,6 +1589,7 @@ class CommandTypes(AdminScriptTestCase): being executed (#21255). """ command = BaseCommand(stderr=StringIO()) + command.check = lambda: [] command.handle = lambda *args, **kwargs: args with mock.patch('django.core.management.base.connections') as mock_connections: command.run_from_argv(['', '']) |
