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:14:38 -0500 |
| commit | 197dd4b8f12164f6acebb3b959f9ac2040a40400 (patch) | |
| tree | b02bea87226cef8ec354787a4423c32c7e6150fa /tests/admin_scripts | |
| parent | 19188826b4aa989475418f1ea9bf8631b04da1e8 (diff) | |
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.
Diffstat (limited to 'tests/admin_scripts')
| -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 319bd47407..151498cc26 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1577,6 +1577,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(['', '']) |
