Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError: _db fixture not defined. #35

Open
shimniok opened this issue Jul 23, 2020 · 1 comment
Open

NotImplementedError: _db fixture not defined. #35

shimniok opened this issue Jul 23, 2020 · 1 comment

Comments

@shimniok
Copy link

I've defined a test fixture _db (based on documentation example) but am getting the following when running pytest:

NotImplementedError: _db fixture not defined. The pytest-flask-sqlalchemy plugin requires you to define a _db fixture that returns a SQLAlchemy Session with access to your test database. For more information, see the plugin documentation: https://github.com/jeancochrane/pytest-flask-sqlalchemy#conftest-setup

python version 3.6.9
pytest-flask-sqlalchemy==1.0.2
pytest==5.4.3
pytest-mock==3.2.0
Flask-SQLAlchemy==2.4.4
SQLAlchemy==1.3.18
postgresql v10

@markdynamo6
Copy link

markdynamo6 commented Aug 2, 2023

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants