1- # pytest-flask-sqlalchemy-transactions
1+ # pytest-flask-sqlalchemy
22
3- [ ![ Build Status] ( https://travis-ci.org/jeancochrane/pytest-flask-sqlalchemy-transactions .svg?branch=master )] ( https://travis-ci.org/jeancochrane/pytest-flask-sqlalchemy-transactions ) ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/Django.svg )
3+ [ ![ Build Status] ( https://travis-ci.org/jeancochrane/pytest-flask-sqlalchemy.svg?branch=master )] ( https://travis-ci.org/jeancochrane/pytest-flask-sqlalchemy ) ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/Django.svg )
44
55A [ pytest] ( https://docs.pytest.org/en/latest/ ) plugin providing fixtures for running tests in
66transactions using [ Flask-SQLAlchemy] ( http://flask-sqlalchemy.pocoo.org/latest/ ) .
@@ -13,6 +13,7 @@ transactions using [Flask-SQLAlchemy](http://flask-sqlalchemy.pocoo.org/latest/)
1313 - [ Installation] ( #installation )
1414 - [ From PyPi] ( #from-pypi )
1515 - [ Development version] ( #development-version )
16+ - [ Supported backends] ( #supported-backends )
1617 - [ Configuration] ( #configuration )
1718 - [ Conftest setup] ( #conftest-setup )
1819 - [ Test configuration] ( #test-configuration )
@@ -125,7 +126,7 @@ def test_transaction_doesnt_persist(db_session):
125126Install using pip:
126127
127128```
128- pip install pytest-flask-sqlalchemy-transactions
129+ pip install pytest-flask-sqlalchemy
129130```
130131
131132Once installed, pytest will detect the plugin automatically during test collection.
@@ -137,8 +138,8 @@ documentation](https://docs.pytest.org/en/latest/plugins.html?highlight=plugins)
137138Clone the repo from GitHub and switch into the new directory:
138139
139140```
140- git clone git@github.com:jeancochrane/pytest-flask-sqlalchemy-transactions .git
141- cd pytest-flask-sqlalchemy-transactions
141+ git clone git@github.com:jeancochrane/pytest-flask-sqlalchemy.git
142+ cd pytest-flask-sqlalchemy
142143```
143144
144145You can install using pip:
@@ -147,6 +148,20 @@ You can install using pip:
147148pip install .
148149```
149150
151+ ### <a name =" supported-backends " >Supported backends</a >
152+
153+ So far, pytest-flask-sqlalchemy has been most extensively tested against
154+ PostgreSQL 9.6. It should theoretically work with any backend that is supported
155+ by SQLAlchemy, but Postgres is the only backend that is currently tested by the
156+ test suite.
157+
158+ Official support for SQLite and MySQL is [ planned for a future
159+ release] ( https://github.com/jeancochrane/pytest-flask-sqlalchemy/issues/3 ) .
160+ In the meantime, if you're using one of those backends and you run in to
161+ problems, we would greatly appreciate your help! [ Open an
162+ issue] ( https://github.com/jeancochrane/pytest-flask-sqlalchemy/issues/new ) if
163+ something isn't working as you expect.
164+
150165## <a name =" configuration " ></a >Configuration
151166
152167### <a name =" conftest-setup " ></a >Conftest setup
@@ -448,6 +463,10 @@ whose blog post ["Delightful testing with pytest and
448463Flask-SQLAlchemy"] ( http://alexmic.net/flask-sqlalchemy-pytest/ ) helped
449464establish the basic approach on which this plugin builds.
450465
466+ Many thanks to [ Igor Ghisi] ( https://github.com/igortg/ ) , who donated the PyPi
467+ package name. Igor had been working on a similar plugin and proposed combining
468+ efforts. Thanks to Igor, the plugin name is much stronger.
469+
451470## <a name =" copyright " ></a >Copyright
452471
453472Copyright (c) 2018 Jean Cochrane and DataMade. Released under the MIT License.
0 commit comments