saifulbabo/math-captcha1
0
1import pytest2 3from src.dtos.ISayHelloDto import ISayHelloDto4from src.index import root, say_hello, hello_message5 6 7@pytest.mark.asyncio8async def test_root():9 result = await root()10 assert result == {'message': 'Hello World'}11 12 13@pytest.mark.asyncio14async def test_say_hello():15 result = await say_hello("John")16 assert result == {'message': 'Hello John'}17 18 19@pytest.mark.asyncio20async def test_hello_message():21 dto = ISayHelloDto(message="Alice")22 result = await hello_message(dto)23 assert result == {'message': 'Hello Alice'}24 