From f8040fb2e7fcd4457fd1b3394fa58660d37a047e Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 29 Jul 2017 14:51:37 +0000 Subject: [PATCH] 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. --- mudpy/tests/selftest.py | 7 +++++++ 1 file changed, 7 insertions(+) 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"), -- 2.11.0