jeancochrane / pytest-flask-sqlalchemy

A pytest plugin for preserving test isolation in Flask-SQLAlchemy using database transactions.
MIT License
255 stars 45 forks source link

[Bug] SQLAlchemy 1.4.x doesn't work #50

Open dwreeves opened 3 years ago

dwreeves commented 3 years ago

With 1.3: https://github.com/codeforboston/police-data-trust/actions/runs/1006498785

With 1.4: https://github.com/codeforboston/police-data-trust/actions/runs/1006417486

The error message received in 1.4:

AttributeError: Mock object has no attribute '_contextual_connect'

FishmanL commented 3 years ago

I'm still getting this error on my end, on version 1.0.2

dwreeves commented 2 years ago

@FishmanL seems like the issue is that pytest-flask-sqlalchemy hasn't been updated in Pypi. https://pypi.org/project/pytest-flask-sqlalchemy/#history The issue should be resolved with the latest commit, just needs to be pushed to Pypi.

chrisgramberg678 commented 2 years ago

seems like the issue is that pytest-flask-sqlalchemy hasn't been updated in Pypi

@dwreeves, do you know how that can be done? I'm not familiar with travis-ci but it looks like that's how new versions are pushed and that there's some error going on over there. Maybe @jeancochrane could help out getting the new version published?