",
- "

",
- ]
-
- for name in xss_payloads:
- with pytest.raises(ValueError) as exc_info:
- CreateAppPayload(name=name, mode="chat")
- assert "invalid characters or patterns" in str(exc_info.value).lower()
-
- def test_create_app_xss_object_embed(self):
- """Test CreateAppPayload rejects object and embed tags."""
- xss_payloads = [
- "
",
- "