From: Jeremy Stanley Date: Sat, 29 Jul 2017 14:51:37 +0000 (+0000) Subject: Exercise the reload command in tests X-Git-Tag: 0.0.1~153 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=f8040fb2e7fcd4457fd1b3394fa58660d37a047e;p=mudpy.git Exercise the reload command in tests To make sure it doesn't get broken in a coming change, call the admin command `reload` in the selftest. --- diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index d8f5106..0eb4e8b 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -154,6 +154,12 @@ test_admin_help = ( (2, "This will save all active accounts", ""), ) +test_reload = ( + (2, "> ", "reload"), + (2, r"Reloading all code modules, configs and data\." + r".* User admin reloaded the world\.", ""), +) + test_show_element = ( (2, "> ", "show element internal:counters"), (2, r'These are the properties of the "internal:counters" element ' @@ -199,6 +205,7 @@ dialogue = ( (test_admin_setup, "admin account setup"), (test_admin_restriction, "restricted admin commands"), (test_admin_help, "admin help"), + (test_reload, "reload"), (test_show_element, "show element"), (test_show_log, "show log"), (test_custom_loglevel, "custom loglevel"),