Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
caiocarrara committed May 28, 2017
1 parent 11560ff commit 5268291
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jarbas/api/tests/test_same_day_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions jarbas/core/tests/test_irregularities_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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}
}
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion jarbas/core/tests/test_load_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
self.assertEqual(1, mock.add_argument.call_count)
1 change: 0 additions & 1 deletion jarbas/core/tests/test_receipt_class.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from json import loads
from unittest.mock import patch

from django.test import TestCase
Expand Down

0 comments on commit 5268291

Please sign in to comment.