kenken999's picture
test
1f074d8
raw
history blame
356 Bytes
from src.models.user import User
from src.repositories.user_repository import UserRepository
from src.services.user_service import UserService
def test_create_user():
user_repository = UserRepository()
user_service = UserService(user_repository)
user = user_service.create_user("John Doe", "[email protected]")
assert isinstance(user, User)