[Answer]-Wrong default_storage during tests

1👍

This was a bug in Django which appears to be fixed on the current master (1.7dev), the 1.6 pre-releases and the 1.5.X stable (1.5.4) https://code.djangoproject.com/ticket/17744

0👍

I solved using:

  • tests.py

    class OutputDataModule(TransactionTestCase):
        def test_01(self):
            with self.settings(MEDIA_ROOT='/srv/http/my_proj/test'):
                myFunc()
    

Maybe it’s a bug of the ovverride_settings() decorator only…

👤caneta

Leave a comment