summaryrefslogtreecommitdiff
path: root/tests/test_command.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-03-11 09:20:19 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-03-11 09:20:19 +0100
commit6f68b21fc6e2f675ea83c4b96df93fcf7edc54dd (patch)
tree1a97f7842fa3acf5c7943f288f97fa371cc09c5b /tests/test_command.py
parentb3ce304e2857bf729dafc064a87e87a25cf0788e (diff)
Rename the main for a MainCommand to make it more consistent with (sub)Commands.
Diffstat (limited to 'tests/test_command.py')
-rw-r--r--tests/test_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_command.py b/tests/test_command.py
index d0b6437..f4e93bb 100644
--- a/tests/test_command.py
+++ b/tests/test_command.py
@@ -54,7 +54,7 @@ class testCommand(unittest.TestCase):
sys.argv = argv
with contextlib.redirect_stdout(stream['stdout']):
with contextlib.redirect_stderr(stream['stderr']):
- cmd.main()
+ cmd.run()
sys.argv = old_argv
return stream