Correct data type for see_also command facets
authorJeremy Stanley <fungi@yuggoth.org>
Mon, 13 May 2019 03:30:53 +0000 (03:30 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Mon, 13 May 2019 03:30:53 +0000 (03:30 +0000)
Make the see_also facets of the chat and say commands list items as
they were originally intended to be, and test that they get
displayed.

mudpy/tests/selftest.py
share/command.yaml

index 56549da..1b2de6a 100644 (file)
@@ -215,6 +215,11 @@ test_admin_help = (
     (2, "This will save all active accounts", ""),
 )
 
     (2, "This will save all active accounts", ""),
 )
 
+test_help = (
+    (0, "> ", "help say"),
+    (0, r"See also: .*chat.*> ", ""),
+)
+
 test_abbrev = (
     (0, "> ", "h"),
     (0, r"h\[elp\].*m\[ove\].*> ", "he mo"),
 test_abbrev = (
     (0, "> ", "h"),
     (0, r"h\[elp\].*m\[ove\].*> ", "he mo"),
@@ -353,6 +358,7 @@ dialogue = (
     (test_telnet_unknown_option, "log unknown telnet option"),
     (test_admin_restriction, "restricted admin commands"),
     (test_admin_help, "admin help"),
     (test_telnet_unknown_option, "log unknown telnet option"),
     (test_admin_restriction, "restricted admin commands"),
     (test_admin_help, "admin help"),
+    (test_help, "help command"),
     (test_abbrev, "command abbreviation"),
     (test_reload, "reload"),
     (test_set_facet, "set facet"),
     (test_abbrev, "command abbreviation"),
     (test_reload, "reload"),
     (test_set_facet, "set facet"),
index e5d113f..7fe1d16 100644 (file)
@@ -12,7 +12,8 @@ command.chat.help: The chat command toggles chat mode. When in chat mode, all
     input is passed as a parameter to the say command, unless prepended by an
     exclamation mark (!). For example, to leave chat mode,
     use:$(eol)$(eol)   !chat
     input is passed as a parameter to the say command, unless prepended by an
     exclamation mark (!). For example, to leave chat mode,
     use:$(eol)$(eol)   !chat
-command.chat.see_also: say
+command.chat.see_also:
+    - say
 
 command.create.administrative: true
 command.create.description: Create a new element in the universe.
 
 command.create.administrative: true
 command.create.description: Create a new element in the universe.
@@ -74,7 +75,8 @@ command.say.help: This allows you to speak to other characters within the same
     ask, "You're sure I went the wrong way?"$(eol)$(eol)If necessary, enclose
     literal statements in quotation marks:$(eol)$(eol)   > say "youre sure i
     went teh wrong way?"$(eol)   You say, "youre sure i went teh wrong way?"
     ask, "You're sure I went the wrong way?"$(eol)$(eol)If necessary, enclose
     literal statements in quotation marks:$(eol)$(eol)   > say "youre sure i
     went teh wrong way?"$(eol)   You say, "youre sure i went teh wrong way?"
-command.say.see_also: chat
+command.say.see_also:
+    - chat
 
 command.set.action: command.c_set
 command.set.administrative: true
 
 command.set.action: command.c_set
 command.set.administrative: true