From 9fa0cc695a870864b569ba1346af63f0c8e6bca7 Mon Sep 17 00:00:00 2001 From: Eduardo Cuducos Date: Thu, 13 Sep 2018 10:52:47 -0300 Subject: [PATCH] Fix tests and minor bugs --- .../chamber_of_deputies/tests/test_reimbursements_command.py | 4 +--- jarbas/settings.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/jarbas/chamber_of_deputies/tests/test_reimbursements_command.py b/jarbas/chamber_of_deputies/tests/test_reimbursements_command.py index e782c682b..80cd3958f 100644 --- a/jarbas/chamber_of_deputies/tests/test_reimbursements_command.py +++ b/jarbas/chamber_of_deputies/tests/test_reimbursements_command.py @@ -41,7 +41,6 @@ def test_handler_with_options(self, drop_all, create): self.assertEqual('reimbursements.xz', self.command.path) self.assertEqual(4096, self.command.batch_size) create.assert_called_once_with() - drop_all.assert_called_once_with(Reimbursement) @patch('jarbas.chamber_of_deputies.management.commands.reimbursements.Command.create_batches') @patch('jarbas.chamber_of_deputies.management.commands.reimbursements.Command.drop_all') @@ -50,7 +49,6 @@ def test_handler_with_options(self, drop_all, create): self.assertEqual('foobar.xz', self.command.path) self.assertEqual(2, self.command.batch_size) create.assert_called_once_with() - drop_all.assert_called_once_with(Reimbursement) class TestAddArguments(TestCase): @@ -58,7 +56,7 @@ class TestAddArguments(TestCase): def test_add_arguments(self): parser = Mock() Command().add_arguments(parser) - self.assertEqual(2, parser.add_argument.call_count) + self.assertEqual(3, parser.add_argument.call_count) class TestFileLoader(TestCommand): diff --git a/jarbas/settings.py b/jarbas/settings.py index f412cb1be..29dc29166 100644 --- a/jarbas/settings.py +++ b/jarbas/settings.py @@ -142,7 +142,7 @@ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') -STATICFILES_STORAGE = config('STATICFILES_STORAGE', default='whitenoise.storage.CompressedManifestStaticFilesStorage') +STATICFILES_STORAGE = config('STATICFILES_STORAGE', default='django.contrib.staticfiles.storage.StaticFilesStorage') # Django REST Framework