mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 17:26:32 +01:00
Remove lint warnings from test_batchprocessors.
This commit is contained in:
parent
7ec0c20f04
commit
335dccabfd
1 changed files with 3 additions and 3 deletions
|
|
@ -81,7 +81,7 @@ class TestBatchCommandProcessor(TestCase):
|
|||
IOError
|
||||
]
|
||||
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, [
|
||||
mock.call('foopath', file_ending='.ev'),
|
||||
mock.call('x', file_ending='.ev')])
|
||||
|
|
@ -115,7 +115,7 @@ class TestBatchCodeProcessor(TestCase):
|
|||
self.assertEqual([
|
||||
'# batchcode code:\n\n',
|
||||
'# batchcode code:\n\nprint("Hello")\n',
|
||||
'# batchcode code:\n\na = 1\nb = [1, \n2, 3]\n'],
|
||||
'# batchcode code:\n\na = 1\nb = [1,\n2, 3]\n'],
|
||||
commands)
|
||||
|
||||
@mock.patch.object(batchprocessors, 'read_batchfile')
|
||||
|
|
@ -171,7 +171,7 @@ class TestBatchCodeProcessor(TestCase):
|
|||
IOError
|
||||
]
|
||||
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, [
|
||||
mock.call('foopath', file_ending='.py'),
|
||||
mock.call('x', file_ending='.py')])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue