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

skip_multi_class() unintended behavior #27

Closed
Jaymon opened this issue Sep 25, 2018 · 0 comments
Closed

skip_multi_class() unintended behavior #27

Jaymon opened this issue Sep 25, 2018 · 0 comments

Comments

@Jaymon
Copy link
Owner

Jaymon commented Sep 25, 2018

If you have a class:

class FooTest(TestCase):
    @classmethod
    def setUpClass(cls):
        pyt.skip_multi_class()

    def test_bar(self): bar

And you run:

$ pyt Foo.bar

It will skip the test because the environment is:

'PYT_TEST_COUNT': "1",
'PYT_TEST_METHOD_COUNT': "1",
'PYT_TEST_CLASS_COUNT': "0",
'PYT_TEST_MODULE_COUNT': "0"

I think it should still run because it is running a specific test method within the class.

@Jaymon Jaymon closed this as completed in 10e3b10 Oct 13, 2018
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

No branches or pull requests

1 participant