pytest-marks 0.3

Pytest Marks module

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Adam Goucher
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Programming \ Quality Assurance and Testing
The ability to set 'marks' on py.test test methods is pretty cool.

    @pytest.mark.red
    def some_test_method(self):
        # some check-y stuff


But if you have a half dozen marks that you want to put on a method, it gets kinda yucky.

    @pytest.mark.red
    @pytest.mark.green
    @pytest.mark.blue
    @pytest.mark.black
    @pytest.mark.orange
    @pytest.mark.pink
    def some_test_method(self):
        # some check-y stuff


What would be nice is if you could apply them all in a single decorator.

    @pytest.marks('red', 'green', 'blue', 'black', 'orange', 'pink')
    def some_test_method(self):
        # some check-y stuff


Well, now you can, with the pytest-marks module.

Last updated on February 15th, 2012

requirements

#Pytest marks #Python library #test methods #Pytest #marks #library #test

Add your review!

SUBMIT