Coverage for an_website / emoji_chat / __init__.py: 100.000%
4 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-26 19:52 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-26 19:52 +0000
1# This program is free software: you can redistribute it and/or modify
2# it under the terms of the GNU Affero General Public License as
3# published by the Free Software Foundation, either version 3 of the
4# License, or (at your option) any later version.
5#
6# This program is distributed in the hope that it will be useful,
7# but WITHOUT ANY WARRANTY; without even the implied warranty of
8# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9# GNU Affero General Public License for more details.
10#
11# You should have received a copy of the GNU Affero General Public License
12# along with this program. If not, see <https://www.gnu.org/licenses/>.
14"""A 🆒 chat."""
17from ..utils.utils import ModuleInfo
18from .chat import (
19 APIChatHandler,
20 ChatWebSocketHandler,
21 HTMLChatHandler,
22 subscribe_to_redis_channel,
23)
26def get_module_info() -> ModuleInfo:
27 """Create and return the ModuleInfo for this module."""
28 return ModuleInfo(
29 handlers=(
30 (r"/emoji-chat", HTMLChatHandler),
31 (r"/api/emoji-chat", APIChatHandler),
32 (r"/websocket/emoji-chat", ChatWebSocketHandler),
33 ),
34 name="Emoji-Chat",
35 description="Ein 🆒er Chat",
36 path="/emoji-chat",
37 keywords=("Emoji Chat",),
38 required_background_tasks=(subscribe_to_redis_channel,),
39 )