alchemy-mock icon indicating copy to clipboard operation
alchemy-mock copied to clipboard

SQLAlchemy mock helpers.

Results 17 alchemy-mock issues
Sort by recently updated
recently updated
newest added

This is a faster and more idiomatic way of using `itertools.chain`. Instead of computing all the items in the iterable and storing them in memory, they are computed one-by-one and...

Hello, First of all, a lot of thanks for sharing this library! It's very useful. If I create a session, later I try to delete all the entries of a...

Hi, I am using pytest and `assert_has_calls` to determine if my session makes certain queries, but I am running into the issue of having multiple tests on the same session....

Hello, Is there a way of mocking this kind of queries? I am making use of `.subquery()` and `.select_from()` without success ``` salesParamsModel = Base.classes.SalesParams lastSalesParams = aliased(salesParamsModel) last_sales_params_derived =...

Using session, it is possible to execute plain **SQL** calls with _execute_ method: ``` session.execute("select count(*) as count from my_table").fetchone[0] ``` I did not find out how I could mock...

I use a method to paginate my queries but in the library I don't have this implementation whenever I use `session.query(Model).paginate(page=1, per_page=10, max_per_page=100)` returns an empty list. If this method...

I would like to understand how these objects could be extended to allow recursive operations. Let me explain a little of what this might look like. For example, it is...