Remove lint warnings from test_batchprocessors.

This commit is contained in:
Henddher Pedroza 2019-10-13 19:45:15 -04:00
parent 0bf90d817c
commit 9e90f3ad4f

View file

@ -81,7 +81,7 @@ class TestBatchCommandProcessor(TestCase):
IOError IOError
] ]
with self.assertRaises(IOError, msg='#INSERT x failed.'): with self.assertRaises(IOError, msg='#INSERT x failed.'):
commands = batchprocessors.BATCHCMD.parse_file('foopath') batchprocessors.BATCHCMD.parse_file('foopath')
self.assertEqual(mocked_read.mock_calls, [ self.assertEqual(mocked_read.mock_calls, [
mock.call('foopath', file_ending='.ev'), mock.call('foopath', file_ending='.ev'),
mock.call('x', file_ending='.ev')]) mock.call('x', file_ending='.ev')])
@ -171,7 +171,7 @@ class TestBatchCodeProcessor(TestCase):
IOError IOError
] ]
with self.assertRaises(IOError, msg='#INSERT x failed.'): with self.assertRaises(IOError, msg='#INSERT x failed.'):
commands = batchprocessors.BATCHCODE.parse_file('foopath') batchprocessors.BATCHCODE.parse_file('foopath')
self.assertEqual(mocked_read.mock_calls, [ self.assertEqual(mocked_read.mock_calls, [
mock.call('foopath', file_ending='.py'), mock.call('foopath', file_ending='.py'),
mock.call('x', file_ending='.py')]) mock.call('x', file_ending='.py')])