diff --git a/jarbas/api/tests/test_same_day_view.py b/jarbas/api/tests/test_same_day_view.py index 380730f..bf57c7e 100644 --- a/jarbas/api/tests/test_same_day_view.py +++ b/jarbas/api/tests/test_same_day_view.py @@ -12,7 +12,7 @@ class TestSameDay(TestCase): def setUp(self): self.maxDiff = 2 ** 10 - cnpj = '12345678901234' + cnpj = '12345678901234' company1 = sample_company_data.copy() company1['cnpj'] = format_cnpj(cnpj) diff --git a/jarbas/core/tests/test_irregularities_command.py b/jarbas/core/tests/test_irregularities_command.py index 443a1fb..a133838 100644 --- a/jarbas/core/tests/test_irregularities_command.py +++ b/jarbas/core/tests/test_irregularities_command.py @@ -67,6 +67,7 @@ def test_serializer_without_suspicions(self): } self.assertEqual(self.command.serialize(input), expected) + class TestCustomMethods(TestCommand): @patch('jarbas.core.management.commands.irregularities.Command.irregularities') @@ -83,7 +84,7 @@ def test_schedule_update_existing_record(self, get): reimbursement = Reimbursement() get.return_value = reimbursement content = { - 'document_id' : 42, + 'document_id': 42, 'probability': 0.618, 'suspicions': {'answer': 42} } @@ -97,7 +98,7 @@ def test_schedule_update_existing_record(self, get): @patch.object(Reimbursement.objects, 'get') def test_schedule_update_non_existing_record(self, get): get.side_effect = Reimbursement.DoesNotExist - content = {'document_id' : 42} + content = {'document_id': 42} self.command.queue = [] self.command.schedule_update(content) get.assert_called_once_with(document_id=42) diff --git a/jarbas/core/tests/test_load_command.py b/jarbas/core/tests/test_load_command.py index d2835f4..01445d8 100644 --- a/jarbas/core/tests/test_load_command.py +++ b/jarbas/core/tests/test_load_command.py @@ -83,4 +83,4 @@ def test_add_arguments(self): def test_add_arguments_without_drop_all(self): mock = Mock() LoadCommand().add_arguments(mock, add_drop_all=False) - self.assertEqual(1, mock.add_argument.call_count) \ No newline at end of file + self.assertEqual(1, mock.add_argument.call_count) diff --git a/jarbas/core/tests/test_receipt_class.py b/jarbas/core/tests/test_receipt_class.py index c3dca29..60ab91f 100644 --- a/jarbas/core/tests/test_receipt_class.py +++ b/jarbas/core/tests/test_receipt_class.py @@ -1,4 +1,3 @@ -from json import loads from unittest.mock import patch from django.test import TestCase