From e94e92acea81f06ea6f8028d17f380212a28764a Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Sun, 15 Feb 2026 09:59:13 -0500 Subject: [PATCH] Add @help create with guided prompts and editor --- tests/test_help_topics.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_help_topics.py b/tests/test_help_topics.py index 08e6e10..1a5dd60 100644 --- a/tests/test_help_topics.py +++ b/tests/test_help_topics.py @@ -186,3 +186,19 @@ async def test_at_help_requires_admin(player): output = "".join(c[0][0] for c in player.writer.write.call_args_list) # Should be rejected by dispatch (admin=True check) assert "permission" in output.lower() + + +@pytest.mark.asyncio +async def test_at_help_create_with_name_prompts_title(admin_player): + """@help create should prompt for title.""" + await commands.dispatch(admin_player, "@help create combat") + output = "".join(c[0][0] for c in admin_player.writer.write.call_args_list) + assert "title" in output.lower() + + +@pytest.mark.asyncio +async def test_at_help_create_no_args_prompts_name(admin_player): + """@help create with no args prompts for the topic name.""" + await commands.dispatch(admin_player, "@help create") + output = "".join(c[0][0] for c in admin_player.writer.write.call_args_list) + assert "name" in output.lower()