pombreda / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

tags doesn't work on inherited test method. #412

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Try test code like this:

class Base(object):
    def test_chrome(self):
        self.setup_something()
        self.run()

    test_chrome.browser = 'chrome'

class TestLogin(Base):
    def run(self):
        pass # run some test

If you run the test with "nosetests", everything is OK.
But if you use "nosetests -a browser=chrome", no test case is found.

What is the expected output? What do you see instead?

It would be convenient to allow inherited test method to have tags.

What version of the product are you using? On what operating system?

1.0.0

Please provide any additional information below.

Original issue reported on code.google.com by newpt...@gmail.com on 21 Apr 2011 at 8:56

GoogleCodeExporter commented 9 years ago
Patch is in https://code.google.com/r/bobbyi-attributes/source/list

Original comment by kumar.mcmillan on 2 May 2011 at 8:15

GoogleCodeExporter commented 9 years ago
This will be released in 1.0.1

Original comment by kumar.mcmillan on 2 May 2011 at 8:35