tests: add test loading custom makemessages command

This commit is contained in:
Frédéric Péters 2021-04-30 12:45:39 +02:00
parent f78d10fd8f
commit 1576b3c0b6
1 changed files with 6 additions and 0 deletions

View File

@ -497,3 +497,9 @@ def test_dbshell(sql_pub):
call_command('dbshell', '--domain', 'example.net')
assert call.call_args[0][-1][0] == 'psql'
assert call.call_args[0][-1][-1] == sql_pub.cfg['postgresql']['database']
def test_makemessages(pub):
# just make sure it loads correctly
with pytest.raises(SystemExit):
call_command('makemessages', '--help')