-
Notifications
You must be signed in to change notification settings - Fork 20
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
Quickstart switch to pytest instead of nose #20
base: development
Are you sure you want to change the base?
Quickstart switch to pytest instead of nose #20
Conversation
330682b
to
d8c9f69
Compare
d8c9f69
to
3610c44
Compare
devtools/gearbox/quickstart/template/+package+/tests/_conftest/app.py_tmpl
Outdated
Show resolved
Hide resolved
('/manage_permission_only', 'editor', 403), | ||
('/editor_user_only', 'manager', 403), | ||
('/editor_user_only', 'editor', 200), | ||
)) |
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.
👍
'it may have already been added:') | ||
import traceback | ||
print(traceback.format_exc()) | ||
print('Continuing with bootstrapping...') |
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.
Well, in the case of sqlalchemy the error was managed because we could do something. We could rollback. In the case of Ming it doesn't expose yet any integration with the transaction system, so I'm not sure there is much we can do. But I'm ok with leaving this in place.
cf77123
to
b9b3e64
Compare
Motivation:
As stated by nose doc https://nose.readthedocs.io/en/latest/ it also have some little issues that are just frustrating:
the effort required by porting from nose to nose2 seems the same as porting from nose to pytest, so the whole test suite in this PR was almost rebuilt from scratch :)
tested against all available options
always 100% code coverage of the quickstarted project whatever options you use
still draft because we need to: