level12 / webgrid

Other
12 stars 7 forks source link

SQLAlchemy incompatibility in testing methods #149

Closed bchopson closed 3 years ago

bchopson commented 3 years ago

https://github.com/level12/webgrid/blob/0.3.7/webgrid/testing.py#L89

testing.query_to_str calls statement.session.get_bind with statement._mapper_zero(), which does not appear to be defined for sqlalchemy 1.4.20 (at least).

Calling statement.session.get_bind with no arguments works for sqlalchemy 1.4.20.

guruofgentoo commented 3 years ago

Resolved in the #116 branch, which is now in master.