pytest-flask-sqlalchemy icon indicating copy to clipboard operation
pytest-flask-sqlalchemy copied to clipboard

A pytest plugin for preserving test isolation in Flask-SQLAlchemy using database transactions.

Results 32 pytest-flask-sqlalchemy issues
Sort by recently updated
recently updated
newest added
trafficstars

Hi Jean, As far as I can tell, I don't see any part of the code here that actually requires Flask-SQLAlchemy. I'm currently using it in a project that doesn't...

I'm looking at the [configuration example](https://github.com/jeancochrane/pytest-flask-sqlalchemy#configuration), which seems to be an extract from [_confest.py](https://github.com/jeancochrane/pytest-flask-sqlalchemy/blob/master/tests/_conftest.py#L25-L61). In _conftest.py you `from pytest_postgresql.factories import (init_postgresql_database, drop_postgresql_database)`. I'm not sure if I'm supposed to `pip...

Dear Ms. Cochrane, I see in some of the other issues that you typically ask for the users to run their tests against PostgreSQL. I though it might be prudent...

Adding MySQL (tested on 5.7) support with updated tests. The travis config was updated to support testing on multiple databases. I will try to tackle SQLite next. NOTE: I skip...

Dear Ms. Cochrane, I am trying to use your package with Sandman 2 and I was wondering if you were aware of any examples that use both packages ? I...

Dear Ms. Cochrane, I've ported your documentation from MarkDown to ReStructuredText to support Read the Docs and Sphinx. I simply copy/pasted everything from the original read me file into the...

I have a conftest: ```python import os import pytest from flask_migrate import upgrade from myapp import create_app, flask_app @pytest.fixture(scope='session') def database(request): uri = flask_app.config.get('SQLALCHEMY_DATABASE_URI') assert uri.startswith('sqlite:///'), 'In tests, use a...

With Flask-SQLAlchemy 2.4.0, SQLAlchemy 1.3.3 and pytest-flask-sqlalchemy 1.0.2, I sometimes (non-deterministically) got `DetachedInstanceError` because the session instantiated in the `flask_sqlalchemy.SQLAlchemy` extension already terminated the session (https://github.com/pallets/flask-sqlalchemy/blob/master/flask_sqlalchemy/__init__.py#L849). Adding something like this...

I have tests, that I would like to run with [live_server](https://pytest-flask.readthedocs.io/en/latest/features.html#live-server-application-live-server) from pytest-flask package. I thought it works ok, but only for single request. [Full repo](https://github.com/citizen-stig/flask-pytest-samples) with working example, [failing...

Currently, Postgres is the only backend that is tested in the test suite for this plugin. While this plugin should theoretically work with any database that is supported by SQLAlchemy,...

enhancement