Skip to content

Fix "db access not allowed" with both transactional_db and db fixtures #127

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

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jul 9, 2014

Fixes #126

blueyed added 4 commits July 8, 2014 22:13
This adds a new helper method (`_django_db_fixture_helper`), which is
being called from `db` and `transaction_db`.

The intermediate helper function (in contrast to using an internal fixture)
is necessary for setting up the `django_db` mark.

Fixes pytest-dev#126
@blueyed
Copy link
Contributor Author

blueyed commented Jul 10, 2014

@pelme
Is this good to merge?

@pelme
Copy link
Member

pelme commented Jul 10, 2014

Looks good to me!

Feel free to add a note to the changelog too. I have been lagging a bit with the changelog for other commits and will go through them all before the next release, but starting now is better than later. :-)

@blueyed
Copy link
Contributor Author

blueyed commented Jul 10, 2014

Merged (squashed) in c552fed.

@blueyed blueyed closed this Jul 10, 2014
@blueyed blueyed deleted the db-access-not-allowed-with-both-transdb-and-db branch July 10, 2014 22:53
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

Successfully merging this pull request may close these issues.

With both db and transactional_db, database access might be denied for db
2 participants