alien-riddle / tests /test_hello.py
Huba179's picture
deploy from GitHub
733b6a1 verified
Raw
History Blame Contribute Delete
473 Bytes
import sys
from pathlib import Path
# Add project root to path for imports
sys.path.insert(0, str(Path(__file__).parent.parent))
from src import hello
def test_hello_returns_correct_message() -> None:
"""Test that hello() returns the expected greeting message."""
result = hello()
assert result == "Hello world"
def test_hello_returns_string() -> None:
"""Test that hello() returns a string."""
result = hello()
assert isinstance(result, str)