-
Notifications
You must be signed in to change notification settings - Fork 344
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
django_db_block access wrong database bug #884
Comments
Running into this too and I was curious if anyone found a workaround for it? |
For anyone else encountering this, there seems to be some magic around having a If I have session-scoped fixtures using For example:
And yes, having the |
when i tried this command
pytest -s --import-mode=importlib
it works fine.but when i tried this
pytest -s --import-mode=importlib app/tests/test_filename.py
first time was a general fail output but after that i got this error:
i checked my postgres database
test_dbname
first and select auth_user this table and it was empty i couldn't find this user i saved. i found it insert to my original databasedbname
auth_user table. it only occurred when i test specific test filemy
conftest.py
my project structure
The text was updated successfully, but these errors were encountered: