You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RobertHana
changed the title
Can mock-alchemy or alchemy-mock be used to mock the following: def fetch() -> List[MyEntity]: selectObject = sqlalchemy.select(MyEntity) with sqlalchemy.orm.Session(engine) as session: results = session.execute(selectObject) instances = results.scalars().fetchall() return instances
Can mock-alchemy or alchemy-mock be used to mock session.execute(selectObject).where(...).scalars.fetchAll?
Oct 12, 2021
I can look into adding fetchall() natively on all returned scalars, but I am not sure of the effort required and interest in such a feature. The unified core is also a request feature that I will look into: #134 .
https://stackoverflow.com/q/69546839/6429049?sem=2
Can mock-alchemy or alchemy-mock be used to mock the following:
The text was updated successfully, but these errors were encountered: