forked from extern/django-helpdesk
Fix call_command options for correct format to work with Django 1.7+
This commit is contained in:
parent
6418194b85
commit
5e93297787
@ -29,7 +29,7 @@ class GetEmailTestCase(TestCase):
|
||||
# tests correct syntax for command line option
|
||||
def test_get_email_quiet_option(self):
|
||||
with mock.patch('helpdesk.management.commands.get_email.process_email') as mocked_processemail:
|
||||
call_command('get_email', '--quiet')
|
||||
call_command('get_email', quiet=True)
|
||||
mocked_processemail.assert_called_with(quiet=True)
|
||||
call_command('get_email')
|
||||
mocked_processemail.assert_called_with(quiet=False)
|
||||
|
Loading…
Reference in New Issue
Block a user