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
mock.call.with_for_update() is not a supported command as of now. I believe this call returns a query which can be used later on. I will look into adding these types of commands. If I am not mistaken,
should return a query object, and not a list of objects according sqlalchemy documentation? Let me know what you think the expected behavior of the line
should be for the testing library. Would you expect a query object with some of the functionality of the query object in SQLAlchemy? I could look into adding that but that would be a considerable addition and therefore take some time.
Yeh it's a good point, with_for_update() I believe is usually used to lock row it "touches" in the db. So I suppose for now if it just returns a query object back that is fine. The testing of the actual mechanism of locking could (and perhaps should be) done outside of unit tests.
Hi,
Im struggling to mock out
Using the following (
return_object
just being a list ofModel
to return).If I remove the
mock.call.with_for_update()
, the example below works.The text was updated successfully, but these errors were encountered: