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()