Exercise the reload command in tests
[mudpy.git] / mudpy / tests / selftest.py
index d8f5106..0eb4e8b 100644 (file)
@@ -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"),