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

Quickstart switch to pytest instead of nose #20

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

CastixGitHub
Copy link
Contributor

@CastixGitHub CastixGitHub commented Oct 21, 2020

Motivation:
As stated by nose doc https://nose.readthedocs.io/en/latest/ it also have some little issues that are just frustrating:

Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.

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:

  • update documentation in tg2docs
  • maybe do the same for quickstart-pluggable in tgext.pluggable

('/manage_permission_only', 'editor', 403),
('/editor_user_only', 'manager', 403),
('/editor_user_only', 'editor', 200),
))
Copy link
Member

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...')
Copy link
Member

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.

@CastixGitHub CastixGitHub changed the title [Draft] Quickstart switch to pytest instead of nose Quickstart switch to pytest instead of nose Apr 20, 2022
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.

2 participants