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

Improve django_db_blocker #380

Merged
merged 2 commits into from Aug 21, 2016
Merged

Improve django_db_blocker #380

merged 2 commits into from Aug 21, 2016

Conversation

pelme
Copy link
Member

@pelme pelme commented Aug 21, 2016

@blueyed thoughts? :)

@pelme
Copy link
Member Author

pelme commented Aug 21, 2016

@blueyed I am happy to let pytest-django 3.0 out as soon as this is merged. Let me know if you want to change anything. When you are happy with this PR I'll make a release and then go and close a lot of old issues related to the new database fixtures. :)

Also, make both block() and unblock() be context managers and remove the
implicit context manager of django_db_blocker itself.

Fixes pytest-dev#372.
@blueyed
Copy link
Contributor

blueyed commented Aug 21, 2016

Awesome! 👍

@pelme pelme merged commit e9abc79 into pytest-dev:master Aug 21, 2016
@pelme pelme deleted the better_blocker branch August 21, 2016 18:20
mfa pushed a commit to aexeagmbh/pytest-django that referenced this pull request May 17, 2017
* Move BaseDatabaseWrapper import check to compat
* Use block()/unblock() as method names in django_db_blocker.
* Make both block() and unblock() be context managers and remove the
implicit context manager of django_db_blocker itself.

Fixes pytest-dev#372.
timb07 pushed a commit to timb07/pytest-django that referenced this pull request May 26, 2018
* Move BaseDatabaseWrapper import check to compat
* Use block()/unblock() as method names in django_db_blocker.
* Make both block() and unblock() be context managers and remove the
implicit context manager of django_db_blocker itself.

Fixes pytest-dev#372.
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.

None yet

2 participants