mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
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