mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #28524 -- Fixed program name in management commands when using 'python -m django'.
This commit is contained in:
parent
f0d9ede9e6
commit
ec6481246a
2 changed files with 6 additions and 0 deletions
|
@ -2223,3 +2223,7 @@ class MainModule(AdminScriptTestCase):
|
|||
cmd_out, _ = self.run_django_admin(['--version'])
|
||||
mod_out, _ = self.run_test('-m', ['django', '--version'])
|
||||
self.assertEqual(mod_out, cmd_out)
|
||||
|
||||
def test_program_name_in_help(self):
|
||||
out, err = self.run_test('-m', ['django', 'help'])
|
||||
self.assertOutput(out, "Type 'python -m django help <subcommand>' for help on a specific subcommand.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue