Ver código fonte

Fixes django tests

Ask Solem 11 anos atrás
pai
commit
af9c1030a5
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      celery/tests/fixups/test_django.py

+ 4 - 3
celery/tests/fixups/test_django.py

@@ -21,10 +21,11 @@ class FixupCase(AppCase):
 
     @contextmanager
     def fixup_context(self, app):
-        with patch('celery.fixups.django.import_module') as import_module:
+        with patch('celery.fixups.django.DjangoWorkerFixup.validate_models'):
             with patch('celery.fixups.django.symbol_by_name') as symbyname:
-                f = self.Fixup(app)
-                yield f, import_module, symbyname
+                with patch('celery.fixups.django.import_module') as import_module:
+                    f = self.Fixup(app)
+                    yield f, import_module, symbyname
 
 
 class test_DjangoFixup(FixupCase):