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

Make sure Doctestcase __file__ attributes start with 'test' #7

Merged
merged 4 commits into from
Aug 31, 2015

Conversation

jimfulton
Copy link
Member

This fixes a problem with the previous pull request. Unlike unittest and py.test, nose selects test class members based on name attribute (rather than on class dictionary keys). After we added setting name based on file or setup function names, I was finding that lots of tests were no-longer being run. (Some wouldn't have run with unittest's or pt.test's runners either). This PR adds a 'test_' prefix is name doesn't start with 'test'.

@@ -4,7 +4,8 @@ Changes
- Added meta data for test case methods created with
``zope.testing.doctestcase``.

- Reasonable values for __name__
- Reasonable values for ``__name__``, making sure than ``__name__``
starts with ``test``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: than -> that.

@mgedmin
Copy link
Member

mgedmin commented Aug 31, 2015

👍 LGTM

jimfulton added a commit that referenced this pull request Aug 31, 2015
Make sure Doctestcase   __file__  attributes start with 'test'
@jimfulton jimfulton merged commit 8a25562 into master Aug 31, 2015
@mgedmin mgedmin deleted the doctestcase-__file__ branch August 31, 2015 11:21
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