from django.test import TestCase

from mock import patch


class TestCelery(TestCase):
    @patch('django.core.management.call_command')
    def test_ensure_search_index_doesnt_call_command(self, call_command_patch):
        from gem.celery import ensure_search_index_updated
        ensure_search_index_updated('sender', 'instance')

        call_command_patch.assert_not_called()

Add basic test for celery.py task
Add basic test for celery.py task

This file isn't being run by any of the tests so we have no guarantee
that it's even valid Python. Let's at least run it a little bit.
