-
Notifications
You must be signed in to change notification settings - Fork 22
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
Async context manager for transactions #31
base: master
Are you sure you want to change the base?
Conversation
Current coverage is 98.15% (diff: 100%)
|
I love the idea for the feature, and the docs are great. However, I don't love using an async context manager for this. For some simple cases, it might be good to have a context manager, but there are a number of reasons to avoid it:
|
For reference, the hacky implementation of this I've been prototyping with is here. |
"country": "United States of America", | ||
"comments": "In New York State"}]) | ||
raise Exception("Whoops!") | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should really be raising/catching specific exception types; except:
sets a really bad example
|
||
[testenv] | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/test-requirements.txt | ||
commands = py.test | ||
commands = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you put these config changes in a separate PR?
No description provided.