Skip to content

Conversation

@AbdealiLoKo
Copy link
Contributor

@AbdealiLoKo AbdealiLoKo commented May 19, 2016

test needs to be checked for methods of a class too. Earlier,
this was not done, and all methods in a class was assumed to be
a test. This commit adds the appropriate condition to ensure that
if the test is set to False, it does not collect that method.

Fixes #1558

CHANGELOG.rst Outdated

**New Features**

* Support nose-style ``__test__`` attribute on methods of classes.
Copy link
Member

@nicoddemus nicoddemus May 19, 2016

Choose a reason for hiding this comment

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

I think it is worth mentioning that this is now working also for TestCase subclasses. For simple test classes setting __test__ already worked before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

__test__ needs to be checked for methods of a class too. Earlier,
this was not done, and all methods in a class was assumed to be
a test. This commit adds the appropriate condition to ensure that
if the __test__ is set to False, it does not collect that method.

Fixes #1558
@nicoddemus
Copy link
Member

Thanks, LGTM! 👍

@RonnyPfannschmidt, could you please merge if you are also OK with it? 😁

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.

3 participants