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

Fix tests by altering 'errors' kwarg in assert_outcomes() to match pytest 6.x API #39

Closed jeancochrane closed 4 years ago

jeancochrane commented 4 years ago

Looks like pytest 6.x changed the assert_outcomes() API so that error is now errors. This is causing our tests to fail when the latest version of Pytest is installed. This PR updates the tests requirements to pin Pytest to >=6.0.1 and adjusts tests/test_configs.py::test_missing_db_fixture to use the new errors kwarg when calling assert_outcomes().