kenken999's picture
sd
185f702
raw
history blame
251 Bytes
import pytest
from app.models import User
@pytest.fixture
def user():
return User(name='John Doe', email='[email protected]')
def test_user_repr(user):
assert user.__repr__() == "User(id=None, name='John Doe', email='[email protected]')"