from typing import Optional

from sqlmodel import Field, Session, SQLModel, create_engine


def test_query(clear_sqlmodel):
    class Hero(SQLModel, table=True):
        id: Optional[int] = Field(default=None, primary_key=True)
        name: str
        secret_name: str
        age: Optional[int] = None

    hero_1 = Hero(name="Deadpond", secret_name="<NAME>")

    engine = 