nose icon indicating copy to clipboard operation
nose copied to clipboard

Accessing test-case attributes into afterTest method

Open nevesagar opened this issue 6 years ago • 0 comments

Hi, I have a test-case with attributes set through @attr way. The nose tests identifies it and executes it correctly. however, I want to do some action if the test with a specific attribute fails... for that I want to be able to know/access the test-case attributes into the afterTest method. but when I try to access the attribute - nosetests bails out with error message -

AttributeError: 'Test' object has no attribute 'speed

can somebody please help ?

nevesagar avatar Sep 22 '17 11:09 nevesagar