Skip to content

Commit

Permalink
Fix tests and minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
cuducos committed Sep 13, 2018
1 parent 7f700fb commit 9fa0cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -50,15 +49,14 @@ 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):

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):
Expand Down
2 changes: 1 addition & 1 deletion jarbas/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9fa0cc6

Please sign in to comment.